mirror of
https://github.com/ethauvin/bld-antlr4.git
synced 2025-04-25 00:37:12 -07:00
Updated for upcoming RIFE2 1.5.18
This commit is contained in:
parent
7e63bbd663
commit
8e8d5283f8
4 changed files with 57 additions and 32 deletions
4
.idea/libraries/bld.xml
generated
4
.idea/libraries/bld.xml
generated
|
@ -2,11 +2,11 @@
|
|||
<library name="bld">
|
||||
<CLASSES>
|
||||
<root url="file://$PROJECT_DIR$/lib/bld" />
|
||||
<root url="jar://$USER_HOME$/.rife2/dist/rife2-1.5.17.jar!/" />
|
||||
<root url="jar://$USER_HOME$/.rife2/dist/rife2-1.5.18-SNAPSHOT3.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES>
|
||||
<root url="jar://$USER_HOME$/.rife2/dist/rife2-1.5.17-sources.jar!/" />
|
||||
<root url="jar://$USER_HOME$/.rife2/dist/rife2-1.5.1-SNAPSHOT3-sources.jar!/" />
|
||||
</SOURCES>
|
||||
<excluded>
|
||||
<root url="jar://$PROJECT_DIR$/lib/bld/bld-wrapper.jar!/" />
|
||||
|
|
|
@ -2,5 +2,5 @@ bld.downloadExtensionJavadoc=false
|
|||
bld.downloadExtensionSources=true
|
||||
bld.extensions=
|
||||
bld.repositories=MAVEN_CENTRAL
|
||||
rife2.downloadLocation=
|
||||
rife2.version=1.5.17
|
||||
rife2.downloadLocation=https://uwyn.com
|
||||
rife2.version=1.5.18-SNAPSHOT3
|
||||
|
|
|
@ -6,7 +6,6 @@ package rife.bld.extension;
|
|||
|
||||
import rife.bld.Project;
|
||||
import rife.bld.publish.PublishDeveloper;
|
||||
import rife.bld.publish.PublishInfo;
|
||||
import rife.bld.publish.PublishLicense;
|
||||
import rife.bld.publish.PublishScm;
|
||||
|
||||
|
@ -21,42 +20,46 @@ public class Antlr4Build extends Project {
|
|||
public Antlr4Build() {
|
||||
pkg = "rife.bld.extension";
|
||||
name = "Antlr4";
|
||||
version = version(0,9,6);
|
||||
javadocOptions
|
||||
.docLint(NO_MISSING)
|
||||
.link("https://rife2.github.io/rife2/");
|
||||
|
||||
publishRepository = version.isSnapshot() ? repository("rife2-snapshots") : repository("rife2-releases");
|
||||
publishInfo = new PublishInfo()
|
||||
.groupId("com.uwyn.rife2")
|
||||
.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"))
|
||||
.signPassphrase(property("sign.passphrase"));
|
||||
version = version(0,9,7,"SNAPSHOT");
|
||||
|
||||
javaRelease = 17;
|
||||
downloadSources = true;
|
||||
autoDownloadPurge = true;
|
||||
repositories = List.of(MAVEN_CENTRAL,RIFE2);
|
||||
|
||||
repositories = List.of(MAVEN_CENTRAL, repository("https://repo.rife2.com/snapshots"), RIFE2);
|
||||
scope(compile)
|
||||
.include(dependency("com.uwyn.rife2", "rife2", version(1,5,17)))
|
||||
.include(dependency("com.uwyn.rife2", "rife2", version(1,5,18,"SNAPSHOT")))
|
||||
.include(dependency("org.antlr", "antlr4", version(4,11,1)));
|
||||
scope(test)
|
||||
.include(dependency("org.junit.jupiter", "junit-jupiter", version(5,9,2)))
|
||||
.include(dependency("org.junit.platform", "junit-platform-console-standalone", version(1,9,2)));
|
||||
|
||||
javadocOperation()
|
||||
.javadocOptions()
|
||||
.docLint(NO_MISSING)
|
||||
.link("https://rife2.github.io/rife2/");
|
||||
|
||||
publishOperation()
|
||||
.repository(version.isSnapshot() ? repository("rife2-snapshots") : repository("rife2-releases"))
|
||||
.info()
|
||||
.groupId("com.uwyn.rife2")
|
||||
.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"))
|
||||
.signPassphrase(property("sign.passphrase"));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -127,6 +127,17 @@ public class Antlr4Operation extends AbstractOperation<Antlr4Operation> {
|
|||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Provides the source directories that will be used for the antlr operation.
|
||||
*
|
||||
* @param directories the source directories
|
||||
* @return this operation instance
|
||||
* @since 1.0
|
||||
*/
|
||||
public Antlr4Operation sourceDirectories(File... directories) {
|
||||
return sourceDirectories(Arrays.asList(directories));
|
||||
}
|
||||
|
||||
/**
|
||||
* Provides the source directories that will be used for the antlr operation.
|
||||
*
|
||||
|
@ -139,6 +150,17 @@ public class Antlr4Operation extends AbstractOperation<Antlr4Operation> {
|
|||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Provides the source files that will be used for the antlr operation.
|
||||
*
|
||||
* @param files the source files
|
||||
* @return this operation instance
|
||||
* @since 1.0
|
||||
*/
|
||||
public Antlr4Operation sourceFiles(File... files) {
|
||||
return sourceFiles(Arrays.asList(files));
|
||||
}
|
||||
|
||||
/**
|
||||
* Provides the source files that will be used for the antlr operation.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue