forked from gurkenlabs/litiengine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-maven.gradle
159 lines (131 loc) · 3.77 KB
/
build-maven.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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'signing'
sourceSets {
main.java.srcDir "src"
main.java.srcDir "resources"
test {
java {
srcDirs = ["tests"]
}
}
}
repositories {
mavenCentral()
}
dependencies {
compile 'net.java.jinput:jinput:2.0.9'
compile 'net.java.jinput:jinput:2.0.9:natives-all'
compile 'com.googlecode.soundlibs:jorbis:0.0.17.4'
compile 'com.googlecode.soundlibs:tritonus-share:0.3.7.4'
compile 'com.googlecode.soundlibs:vorbisspi:1.0.3.3'
compile ('com.googlecode.soundlibs:mp3spi:1.9.5.4'){
exclude group:'junit'
}
compile 'com.code-disaster.steamworks4j:steamworks4j:1.8.0'
// JAXB modules for JDK 9 or higher
compile 'javax.xml.bind:jaxb-api:2.3.0'
compile 'com.sun.xml.bind:jaxb-core:2.3.0'
compile 'com.sun.xml.bind:jaxb-impl:2.3.0'
compile 'javax.activation:activation:1.1.1'
testCompile 'org.junit.jupiter:junit-jupiter-api:5.3.2'
testCompile 'org.junit.jupiter:junit-jupiter-params:5.3.2'
testRuntime 'org.junit.jupiter:junit-jupiter-engine:5.3.2'
testCompile 'org.mockito:mockito-core:2.23.4'
}
test {
useJUnitPlatform()
}
jar {
from {configurations.compile.collect { zipTree it }
} {
exclude 'META-INF/services/**'
}
from('resources') { include '**/*' }
version = 'v0.4.15-alpha'
exclude '**/*.dll'
exclude '**/*.jnilib'
exclude '**/*.dylib'
exclude '**/*.so'
exclude 'junit**/**'
}
javadoc {
options.encoding = 'UTF-8'
}
signing {
sign configurations.archives
}
task copyNativeLibs(type: Copy) {
from(new File('lib')) { exclude '**/*.jar' }
into new File(buildDir, 'libs')
from(new File('.')) { include 'LICENSE' }
into new File(buildDir, 'libs')
}
task createJavadocs(type: Javadoc) {
source = sourceSets.main.allJava
options.encoding = 'UTF-8'
dependsOn build
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
version = 'v0.4.15-alpha'
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
version = 'v0.4.15-alpha'
}
artifacts {
archives javadocJar, sourcesJar
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
dependsOn copyNativeLibs
}
group = "de.gurkenlabs"
archivesBaseName = "litiengine"
version = "0.4.15"
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
pom.project {
name 'litiengine'
packaging 'jar'
// optionally artifactId can be defined here
description 'LITIengine is the pure 2D free java game engine. Written in plain Java 8 it provides all the infrastructure to create a 2D tile based java game, be it a platformer or a top-down adventure.'
url 'http://litiengine.com'
scm {
connection 'scm:git:git://github.com/gurkenlabs/litiengine.git'
developerConnection 'scm:git:[email protected]:gurkenlabs/litiengine.git'
url 'https://github.com/gurkenlabs/litiengine/'
}
licenses {
license {
name 'MIT License'
url 'https://github.com/gurkenlabs/litiengine/blob/master/LICENSE'
}
}
developers {
developer {
id 'steffen'
name 'Steffen Wilke'
email '[email protected]'
}
developer {
id 'matthias'
name 'Matthias Wilke'
email '[email protected]'
}
}
}
}
}
}