forked from Mojang/brigadier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
74 lines (62 loc) · 1.59 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
plugins {
id 'java-library'
id 'maven-publish'
id 'pl.allegro.tech.build.axion-release' version '1.13.2'
}
scmVersion.tag.prefix = ''
group = 'gg.solarmc'
project.version = scmVersion.version
sourceCompatibility = 11
targetCompatibility = 11
repositories {
mavenCentral()
}
dependencies {
testImplementation 'com.google.guava:guava:26.0-jre'
testImplementation 'junit:junit-dep:4.11'
testImplementation 'org.hamcrest:hamcrest-library:1.3'
testImplementation 'org.mockito:mockito-core:1.10.19'
testImplementation 'com.google.guava:guava-testlib:26.0-jre'
testImplementation 'org.openjdk.jmh:jmh-core:1.21'
annotationProcessor 'org.openjdk.jmh:jmh-generator-annprocess:1.21'
}
java {
withSourcesJar()
withJavadocJar()
}
compileJava {
options.release = 11
// See Gradle-17484 for bug affecting options.javaModuleVersion
options.compilerArgs.addAll(['--module-version', project.version])
}
test {
testLogging {
events "failed", "skipped"
showStandardStreams = true
showExceptions true
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}
task report {
doLast {
println "##teamcity[buildNumber '${project.version}']"
}
}
publishing {
repositories {
maven {
credentials {
username System.getenv("REPO_USER")
password System.getenv("REPO_PASS")
}
name = "solar-repo"
url = "https://maven.cloudsmith.io/solarmc/oss-lesser-gpl3"
}
}
}