-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.gradle
128 lines (113 loc) · 3.09 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
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 "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
testImplementation('org.junit.jupiter:junit-jupiter-api:5.7.1')
testImplementation('org.junit.jupiter:junit-jupiter-params:5.7.1')
testImplementation('org.junit-pioneer:junit-pioneer:1.3.8')
testRuntimeOnly('org.junit.jupiter:junit-jupiter-engine:5.7.1')
testRuntimeOnly('org.junit.platform:junit-platform-console:1.7.1')
}
compileJava {
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 Biome Generation for all dimension and all versions'
url = 'https://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/BiomeUtils.git'
url = 'https://github.com/kaptainwutax/BiomeUtils.git'
}
}
}
}
repositories {
maven {
def releasesRepoUrl = "https://jitpack.io/com/github/kaptainwutax/biomeutils/latest"
def snapshotsRepoUrl = "https://jitpack.io/com/github/kaptainwutax/biomeutils/snapshots"
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
}
}
}
javadoc {
if (JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}