mirror of
https://github.com/TauMC/glsl-transformation-lib.git
synced 2026-11-29 22:02:09 -05:00
51 lines
1.1 KiB
Groovy
51 lines
1.1 KiB
Groovy
plugins {
|
|
id 'antlr'
|
|
id 'java-library'
|
|
id 'maven-publish'
|
|
}
|
|
|
|
group = 'org.taumc'
|
|
version = '1.0-SNAPSHOT'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
antlr "org.antlr:antlr4:4.13.2"
|
|
implementation 'org.anarres:jcpp:1.4.14'
|
|
|
|
testImplementation platform('org.junit:junit-bom:5.10.0')
|
|
testImplementation 'org.junit.jupiter:junit-jupiter'
|
|
}
|
|
|
|
generateGrammarSource {
|
|
arguments += ["-visitor", '-package', 'org.taumc.glsl.grammar']
|
|
outputDirectory = new File(buildDir.toString() + "/generated-src/antlr/main/org/taumc/glsl/grammar/")
|
|
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
mavenJava(MavenPublication) {
|
|
from components.java
|
|
}
|
|
}
|
|
repositories {
|
|
maven {
|
|
name = "taumcRepository"
|
|
url = uri("https://maven.taumc.org/releases")
|
|
credentials {
|
|
username = System.getenv("MAVEN_USERNAME")
|
|
password = System.getenv("MAVEN_SECRET")
|
|
}
|
|
authentication {
|
|
basic(BasicAuthentication)
|
|
}
|
|
}
|
|
}
|
|
} |