在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):melix/antlr4-gradle-plugin开源软件地址(OpenSource Url):https://github.com/melix/antlr4-gradle-plugin开源编程语言(OpenSource Language):Groovy 100.0%开源软件介绍(OpenSource Introduction):Antlr4 Gradle PluginThis plugin is unmaintained. Since its release official support for Antlr 4 has been added to Gradle. See https://docs.gradle.org/current/userguide/antlr_plugin.html#header InstallationUse the following snippet inside a Gradle build file: build.gradle
buildscript {
repositories {
maven {
name 'JFrog OSS snapshot repo'
url 'https://oss.jfrog.org/oss-snapshot-local/'
}
jcenter()
}
dependencies {
classpath 'me.champeau.gradle:antlr4-gradle-plugin:0.1'
}
}
repositories {
jcenter()
}
apply plugin: 'me.champeau.gradle.antlr4' ConfigurationThe plugin adds a new task named
UsageBasic generationGenerating grammars can be done by calling the
Dependency on generated sourcesIn general, you will want your main project to depend on the generated sources for compilation. You can easily do
this by adding this configuration into your build.gradle
// make the Java compile task depend on the antlr4 task
compileJava.dependsOn antlr4
// add the generated source files to the list of java sources
sourceSets.main.java.srcDirs += antlr4.output
// add antlr4 to classpath
configurations {
compile.extendsFrom antlr4
} |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论