-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathbuild.gradle
138 lines (119 loc) · 3.56 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
plugins {
id 'java-library'
id 'maven-publish'
id "idea"
id "jacoco"
id 'org.jetbrains.kotlin.jvm' version '1.5.0-RC'
}
group = 'com.seedfinding'
archivesBaseName = project.name
defaultTasks 'clean', 'test', 'install'
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
withJavadocJar()
withSourcesJar()
}
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
}
dependencies {
implementation('com.github.KaptainWutax:MathUtils:5531c4a87b0f1bb85d1dab2bdd18ce375400626a') { transitive = false }
implementation('com.github.KaptainWutax:SeedUtils:b6a383113ce5d8d09a59e91b28ff064fb97c0709') { transitive = false }
implementation('com.github.KaptainWutax:MCUtils:1e5785a648a04454461ef02ee27cbc63e3599bff') { transitive = false }
implementation('com.github.KaptainWutax:NoiseUtils:2cf64e1d2e7e674fbf5b7247f16e8dc56ae2a31c') { transitive = false }
implementation('com.github.KaptainWutax:BiomeUtils:b2065a0281342f269af31da9ef7349ffdc337534') {transitive = false}
implementation('com.github.KaptainWutax:TerrainUtils:605c46b94a5126df55bd347b82f277af443909c9') { transitive = false }
implementation('com.github.KaptainWutax:ChunkRandomReversal:6b76fb5cf2cd438de56e6a46cea2a83985831834') { transitive = false }
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
testImplementation("org.junit.jupiter:junit-jupiter-api:${jupiterVersion}")
testImplementation("org.junit.jupiter:junit-jupiter-params:${jupiterVersion}")
testImplementation('org.junit-pioneer:junit-pioneer:1.3.8')
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${jupiterVersion}")
testRuntimeOnly('org.junit.platform:junit-platform-console:1.7.1')
}
compileJava {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
compileTestJava {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
test {
useJUnitPlatform {
includeEngines("junit-jupiter")
maxHeapSize = "1G"
}
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
outputs.upToDateWhen { false }
showStandardStreams = true
showExceptions true
showCauses true
showStackTraces true
}
finalizedBy(jacocoTestReport)
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = "$project.name"
from components.java
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
pom {
name = "$project.name"
description = 'An efficient library to simulate Minecraft Terrain Generation for all dimension'
url = 'http://www.kaptainwutax.seedfinding.com'
licenses {
license {
name = 'MIT License'
url = 'https://opensource.org/licenses/MIT'
}
}
developers {
developer {
id = 'hube12'
name = 'Neil'
}
developer {
id = 'Kap'
name = 'KaptainWutax'
}
}
scm {
connection = 'scm:git:https://github.com/kaptainwutax/TerrainUtils.git'
url = 'https://github.com/kaptainwutax/TerrainUtils.git'
}
}
}
}
repositories {
maven {
def releasesRepoUrl = "https://jitpack.io/com/github/kaptainwutax/terrainutils/latest"
def snapshotsRepoUrl = "https://jitpack.io/com/github/kaptainwutax/terrainutils/snapshots"
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
}
}
}
javadoc {
if (JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}