This repository was archived by the owner on Aug 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
71 lines (61 loc) · 1.97 KB
/
build.gradle
File metadata and controls
71 lines (61 loc) · 1.97 KB
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
plugins {
id "org.jetbrains.kotlin.jvm" version "1.3.50"
id "com.github.ben-manes.versions" version "0.27.0"
}
group 'scait'
version '1.0-SNAPSHOT'
apply plugin: 'kotlin'
repositories {
mavenCentral()
maven {
url "https://jitpack.io"
}
}
configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
resolutionStrategy.cacheDynamicVersionsFor 0, 'seconds'
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
implementation("com.github.JavaBWAPI:JBWAPI:fail-early-SNAPSHOT").changing = true
//implementation('com.github.Bytekeeper:ass:develop-SNAPSHOT').changing = true
implementation(files('lib/ass-1.2.jar'))
implementation 'org.locationtech.jts:jts-core:1.16.1'
implementation 'com.github.luben:zstd-jni:1.4.3-1'
implementation 'com.jsoniter:jsoniter:0.9.19'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.5.2'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.5.2'
testImplementation 'org.assertj:assertj-core:3.+'
testImplementation("org.mockito:mockito-core:3.+")
test.useJUnitPlatform()
}
compileKotlin {
kotlinOptions {
languageVersion = "1.3"
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'Gradle Jar File Example',
'Implementation-Version': version,
'Main-Class': 'org.styx.ListenerKt'
}
baseName = project.name + '-all'
from { configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
dependsOn(tasks.assemble)
}
task sourceJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'Gradle Jar File Example',
'Implementation-Version': version,
'Main-Class': 'org.fttbot.MainKt'
}
baseName = project.name + '-all-sources'
from sourceSets.main.allSource
with jar
}