-
Notifications
You must be signed in to change notification settings - Fork 33
/
build.gradle
79 lines (63 loc) · 1.99 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
apply plugin: "java"
apply plugin: 'maven'
group = 'com.github.WilliamAHartman'
sourceCompatibility = 1.8
targetCompatibility = 1.8
sourceSets.main.java.srcDirs = [ "src/" ]
sourceSets.main.resources.srcDirs = [ "res/",
"libs/linux32", "libs/linux64",
"libs/macosx32", "libs/macosx64",
"libs/windows32", "libs/windows64",
"libs/linuxArm"]
sourceSets.test.java.srcDirs = [ ]
sourceSets.test.resources.srcDirs = [ ]
repositories {
jcenter()
}
dependencies {
//implementation files('/Users/richard/IdeaProjects/sdl2gdx/build/libs/sdl2gdx.jar')
implementation "uk.co.electronstudio.sdl2gdx:sdl2gdx:1.0.4-beta3"
//implementation "com.badlogicgames.gdx:gdx-jnigen:1.9.10"
}
task runTester(dependsOn: classes, type: JavaExec) {
main = 'com.studiohartman.jamepad.tester.ControllerTester'
classpath = sourceSets.main.runtimeClasspath
standardInput = System.in
}
task dist(dependsOn: classes, type: Jar) {
from files(sourceSets.main.output.classesDir)
from files(sourceSets.main.output.resourcesDir)
from {configurations.compile.collect {zipTree(it)}}
manifest {
attributes 'Main-Class': 'com.studiohartman.jamepad.tester.ControllerTester'
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
// To specify a license in the pom:
install {
repositories.mavenInstaller {
pom.project {
licenses {
license {
name 'zlib License'
url 'http://www.zlib.net/zlib_license.html'
distribution 'repo'
}
}
}
pom.whenConfigured {
p -> p.dependencies = []
}
}
}