-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
61 lines (55 loc) · 1.82 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
apply plugin: 'kotlin'
apply plugin: 'java-library'
apply plugin: 'application'
buildscript {
repositories {
mavenLocal()
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
}
}
version = "3.0.5-JITPACK"
mainClassName = 'com.github.czyzby.setup.MainKt'
sourceCompatibility = 1.8
jar {
manifest {
attributes 'Main-Class': mainClassName
// attributes 'JCabi-Version': "0.23"
// attributes 'JCabi-Build': "4bb75e3"
// attributes 'JCabi-Date': "2015-04-24T18:33:15"
}
duplicatesStrategy(DuplicatesStrategy.EXCLUDE)
from { configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
exclude('META-INF/INDEX.LIST', 'META-INF/*.SF', 'META-INF/*.DSA', 'META-INF/*.RSA')
dependencies {
exclude('META-INF/INDEX.LIST', 'META-INF/maven/**')
}
doLast {
file(archiveFile).setExecutable(true, false)
}
}
repositories {
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url 'https://jitpack.io' }
gradlePluginPortal()
}
dependencies {
api "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
api "org.apache.commons:commons-exec:$commonsExecVersion"
api 'org.slf4j:slf4j-nop:1.7.25'
api "com.badlogicgames.gdx:gdx:$gdxVersion"
api "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion"
api "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
api "io.github.lukehutch:fast-classpath-scanner:2.21"
api "com.kotcrab.vis:vis-ui:1.5.0"
// all dependencies below are for jcabi-github to be usable at runtime... ugh.
api "org.glassfish:javax.json:1.0.4"
api "org.glassfish.jersey.core:jersey-common:2.17"
api "javax.ws.rs:javax.ws.rs-api:2.1.1"
api "org.apache.httpcomponents:httpclient:4.5.3"
api "com.jcabi:jcabi-github:1.0"
}