-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
executable file
·53 lines (44 loc) · 1.12 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
buildscript {
ext.kotlin_version = '1.2.31'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'kotlin'
apply plugin: 'application'
mainClassName = 'net.ps2stats.ui.AssetViewer'
defaultTasks 'run'
repositories {
mavenCentral()
maven { url 'http://repo.nallar.me/' }
}
configurations {
provided
compile.extendsFrom provided
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile 'org.projectlombok:lombok:1.16.6'
compile 'com.google.guava:guava:20.0'
compile 'com.intellij:forms_rt:7.0.3'
compile group: 'me.nallar', name: 'jdds', version: '1.0-SNAPSHOT', changing: true
testCompile 'junit:junit:4.11'
testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
}
task wrapper(type: Wrapper) {
gradleVersion = "4.6"
}
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from((configurations.runtime - configurations.provided).filter { it.exists() }.collect {
it.isDirectory() ? it : zipTree(it)
}) {
exclude "META-INF/**"
}
manifest {
attributes 'Main-Class': mainClassName
}
}