-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
80 lines (68 loc) · 1.89 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
plugins {
id 'antlr'
id 'java-library'
id 'maven-publish'
id "com.cinnober.gradle.semver-git" version "3.0.0" apply false
}
group = 'org.taumc'
ext.snapshotSuffix = '<count>.g<sha>'
apply plugin: 'com.cinnober.gradle.semver-git'
repositories {
maven {
name = "gtnh"
url = uri("https://nexus.gtnewhorizons.com/repository/public/")
content {
includeGroup 'com.github.bsideup.jabel'
}
}
mavenCentral()
}
dependencies {
annotationProcessor 'com.github.bsideup.jabel:jabel-javac-plugin:1.0.1'
compileOnly 'com.github.bsideup.jabel:jabel-javac-plugin:1.0.1'
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'
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(8)
vendor = JvmVendorSpec.AZUL
}
}
configure([tasks.compileJava]) {
sourceCompatibility = 17
options.release = 8
javaCompiler = javaToolchains.compilerFor {
languageVersion = JavaLanguageVersion.of(17)
vendor = JvmVendorSpec.AZUL
}
}
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)
}
}
}
}