mirror of
https://github.com/ethauvin/bld-antlr4.git
synced 2025-04-25 08:47:11 -07:00
Updated to RIFE2 and bld 1.5.17
This commit is contained in:
parent
8fe746cf75
commit
7e63bbd663
7 changed files with 36 additions and 9 deletions
4
.idea/libraries/bld.xml
generated
4
.idea/libraries/bld.xml
generated
|
@ -2,11 +2,11 @@
|
||||||
<library name="bld">
|
<library name="bld">
|
||||||
<CLASSES>
|
<CLASSES>
|
||||||
<root url="file://$PROJECT_DIR$/lib/bld" />
|
<root url="file://$PROJECT_DIR$/lib/bld" />
|
||||||
<root url="jar://$USER_HOME$/.rife2/dist/rife2-1.5.16.jar!/" />
|
<root url="jar://$USER_HOME$/.rife2/dist/rife2-1.5.17.jar!/" />
|
||||||
</CLASSES>
|
</CLASSES>
|
||||||
<JAVADOC />
|
<JAVADOC />
|
||||||
<SOURCES>
|
<SOURCES>
|
||||||
<root url="jar://$USER_HOME$/.rife2/dist/rife2-1.5.16-sources.jar!/" />
|
<root url="jar://$USER_HOME$/.rife2/dist/rife2-1.5.17-sources.jar!/" />
|
||||||
</SOURCES>
|
</SOURCES>
|
||||||
<excluded>
|
<excluded>
|
||||||
<root url="jar://$PROJECT_DIR$/lib/bld/bld-wrapper.jar!/" />
|
<root url="jar://$PROJECT_DIR$/lib/bld/bld-wrapper.jar!/" />
|
||||||
|
|
9
.idea/misc.xml
generated
Normal file
9
.idea/misc.xml
generated
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="PDMPlugin">
|
||||||
|
<option name="skipTestSources" value="false" />
|
||||||
|
</component>
|
||||||
|
<component name="ProjectRootManager" version="2" project-jdk-name="17" project-jdk-type="JavaSDK">
|
||||||
|
<output url="file://$PROJECT_DIR$/build" />
|
||||||
|
</component>
|
||||||
|
</project>
|
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
|
@ -7,7 +7,7 @@
|
||||||
],
|
],
|
||||||
"java.configuration.updateBuildConfiguration": "automatic",
|
"java.configuration.updateBuildConfiguration": "automatic",
|
||||||
"java.project.referencedLibraries": [
|
"java.project.referencedLibraries": [
|
||||||
"${HOME}/.rife2/dist/rife2-1.5.16.jar",
|
"${HOME}/.rife2/dist/rife2-1.5.17.jar",
|
||||||
"lib/compile/*.jar",
|
"lib/compile/*.jar",
|
||||||
"lib/runtime/*.jar",
|
"lib/runtime/*.jar",
|
||||||
"lib/test/*.jar"
|
"lib/test/*.jar"
|
||||||
|
|
|
@ -21,7 +21,7 @@ private final CompileOperation compileOperation = new CompileOperation();
|
||||||
@BuildCommand(summary = "Generates the grammar Java sources")
|
@BuildCommand(summary = "Generates the grammar Java sources")
|
||||||
public void generateGrammar()
|
public void generateGrammar()
|
||||||
throws Exception {
|
throws Exception {
|
||||||
antlr4Operation.executeOnce(o -> o
|
antlr4Operation.executeOnce(() -> antlr4Operation
|
||||||
.sourceDirectories(List.of(new File(srcMainDirectory(), "antlr")))
|
.sourceDirectories(List.of(new File(srcMainDirectory(), "antlr")))
|
||||||
.outputDirectory(new File(buildDirectory(), "generated"))
|
.outputDirectory(new File(buildDirectory(), "generated"))
|
||||||
// these options are specific to ANTLR4, please refer to the extension
|
// these options are specific to ANTLR4, please refer to the extension
|
||||||
|
@ -36,7 +36,7 @@ throws Exception {
|
||||||
generateGrammar();
|
generateGrammar();
|
||||||
|
|
||||||
// include the generated grammar with the main sources
|
// include the generated grammar with the main sources
|
||||||
compileOperation.executeOnce(o -> o
|
compileOperation.executeOnce(() -> compileOperation
|
||||||
.fromProject(this)
|
.fromProject(this)
|
||||||
.mainSourceDirectories(List.of(antlr4Operation.outputDirectory())));
|
.mainSourceDirectories(List.of(antlr4Operation.outputDirectory())));
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
|
@ -3,4 +3,4 @@ bld.downloadExtensionSources=true
|
||||||
bld.extensions=
|
bld.extensions=
|
||||||
bld.repositories=MAVEN_CENTRAL
|
bld.repositories=MAVEN_CENTRAL
|
||||||
rife2.downloadLocation=
|
rife2.downloadLocation=
|
||||||
rife2.version=1.5.16
|
rife2.version=1.5.17
|
||||||
|
|
|
@ -5,7 +5,10 @@
|
||||||
package rife.bld.extension;
|
package rife.bld.extension;
|
||||||
|
|
||||||
import rife.bld.Project;
|
import rife.bld.Project;
|
||||||
|
import rife.bld.publish.PublishDeveloper;
|
||||||
import rife.bld.publish.PublishInfo;
|
import rife.bld.publish.PublishInfo;
|
||||||
|
import rife.bld.publish.PublishLicense;
|
||||||
|
import rife.bld.publish.PublishScm;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -18,14 +21,29 @@ public class Antlr4Build extends Project {
|
||||||
public Antlr4Build() {
|
public Antlr4Build() {
|
||||||
pkg = "rife.bld.extension";
|
pkg = "rife.bld.extension";
|
||||||
name = "Antlr4";
|
name = "Antlr4";
|
||||||
version = version(0,9,5);
|
version = version(0,9,6);
|
||||||
javadocOptions
|
javadocOptions
|
||||||
.docLint(NO_MISSING)
|
.docLint(NO_MISSING)
|
||||||
.link("https://rife2.github.io/rife2/");
|
.link("https://rife2.github.io/rife2/");
|
||||||
publishRepository = repository("rife2");
|
|
||||||
|
publishRepository = version.isSnapshot() ? repository("rife2-snapshots") : repository("rife2-releases");
|
||||||
publishInfo = new PublishInfo()
|
publishInfo = new PublishInfo()
|
||||||
.groupId("com.uwyn.rife2")
|
.groupId("com.uwyn.rife2")
|
||||||
.artifactId("bld-antlr4")
|
.artifactId("bld-antlr4")
|
||||||
|
.description("bld extension for generating ANTLR4 grammars")
|
||||||
|
.url("https://github.com/rife2/bld-antlr4")
|
||||||
|
.developer(new PublishDeveloper()
|
||||||
|
.id("gbevin")
|
||||||
|
.name("Geert Bevin")
|
||||||
|
.email("gbevin@uwyn.com")
|
||||||
|
.url("https://github.com/gbevin"))
|
||||||
|
.license(new PublishLicense()
|
||||||
|
.name("The Apache License, Version 2.0")
|
||||||
|
.url("https://www.apache.org/licenses/LICENSE-2.0.txt"))
|
||||||
|
.scm(new PublishScm()
|
||||||
|
.connection("scm:git:https://github.com/rife2/bld-antlr4.git")
|
||||||
|
.developerConnection("scm:git:git@github.com:rife2/bld-antlr4.git")
|
||||||
|
.url("https://github.com/rife2/bld-antlr4"))
|
||||||
.signKey(property("sign.key"))
|
.signKey(property("sign.key"))
|
||||||
.signPassphrase(property("sign.passphrase"));
|
.signPassphrase(property("sign.passphrase"));
|
||||||
|
|
||||||
|
@ -34,7 +52,7 @@ public class Antlr4Build extends Project {
|
||||||
autoDownloadPurge = true;
|
autoDownloadPurge = true;
|
||||||
repositories = List.of(MAVEN_CENTRAL,RIFE2);
|
repositories = List.of(MAVEN_CENTRAL,RIFE2);
|
||||||
scope(compile)
|
scope(compile)
|
||||||
.include(dependency("com.uwyn.rife2", "rife2", version(1,5,16)))
|
.include(dependency("com.uwyn.rife2", "rife2", version(1,5,17)))
|
||||||
.include(dependency("org.antlr", "antlr4", version(4,11,1)));
|
.include(dependency("org.antlr", "antlr4", version(4,11,1)));
|
||||||
scope(test)
|
scope(test)
|
||||||
.include(dependency("org.junit.jupiter", "junit-jupiter", version(5,9,2)))
|
.include(dependency("org.junit.jupiter", "junit-jupiter", version(5,9,2)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue