-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
170 lines (140 loc) · 4.58 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
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
160
161
162
163
164
165
166
167
168
169
170
apply plugin: "kotlin"
apply plugin: 'maven-publish'
sourceCompatibility = 1.8
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
sourceSets.main.java.srcDirs = ["src/"]
sourceSets.main.resources.srcDirs = ["resources/"]
repositories {
flatDir {
dirs '../libs'
}
}
configurations {
ktlint
}
task ktlint(type: JavaExec) {
main = "com.github.shyiko.ktlint.Main"
classpath = configurations.ktlint
args "src/**/*.kt"
}
check.dependsOn ktlint
task ktlintFormat(type: JavaExec) {
main = "com.github.shyiko.ktlint.Main"
classpath = configurations.ktlint
args "-F", "src/**/*.kt"
}
dependencies {
implementation 'io.sentry:sentry:1.7.3'
//compile "uk.co.electronstudio.mobcontrol:mobcontrol:0.1.8"
compile name: "MobControl-0.1.7"
//implementation group: 'uk.co.electronstudio.mobcontrol', name: 'mobcontrol', version: '0.1.0'
implementation group: 'org.eclipse.jetty.websocket', name: 'websocket-api', version: '9.4.24.v20191120'
implementation group: 'org.eclipse.jetty.websocket', name: 'websocket-server', version: '9.4.24.v20191120'
implementation "com.code-disaster.steamworks4j:steamworks4j:1.8.0"
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion"
implementation "net.dermetfan.libgdx-utils:libgdx-utils:$gdxUtilsVersion"
ktlint 'com.github.shyiko:ktlint:0.34.2'
implementation("com.esotericsoftware:kryo:4.0.2")
implementation("com.esotericsoftware:kryonet:2.22.0-RC1") {
exclude module: 'kryo'
}
api "com.badlogicgames.gdx:gdx:$gdxVersion"
api "com.badlogicgames.gdx:gdx-controllers:$gdxVersion"
implementation 'com.beust:klaxon:0.30'
implementation group: 'org.codehaus.groovy', name: 'groovy', version: '2.5.7'
//compile group: 'javax.xml.bind', name: 'jaxb-api', version: '2.3.0'
}
apply plugin: 'org.jetbrains.dokka'
dokka {
outputFormat = 'javadoc'
outputDirectory = "$buildDir/javadoc"
includeNonPublic = false
skipEmptyPackages = true
jdkVersion = 8
externalDocumentationLink {
// Root URL of the generated documentation to link with. The trailing slash is required!
url = new URL("https://libgdx.badlogicgames.com/ci/nightlies/docs/api/")
packageListUrl = new URL("https://libgdx.badlogicgames.com/ci/nightlies/docs/api/package-list")
}
packageOptions {
prefix = "uk.co.electronstudio.retrowar.music"
suppress = true
}
packageOptions {
prefix = "uk.co.electronstudio.retrowar.menu"
suppress = true
}
packageOptions {
prefix = "uk.co.electronstudio.retrowar.network"
suppress = true
}
packageOptions {
prefix = "de.golfgl.gdxgameanalytics"
suppress = true
}
}
task dokkaJavadoc(type: org.jetbrains.dokka.gradle.DokkaTask) {
outputFormat = 'javadoc'
outputDirectory = "$buildDir/javadoc2"
}
jar {
manifest {
attributes 'Implementation-Version': version
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: dokkaJavadoc) {
classifier = 'javadoc'
from dokkaJavadoc.outputDirectory
}
artifacts {
archives sourcesJar
archives javadocJar
}
def pomConfig = {
licenses {
license {
name "Apache License version 2"
url "https://apache.org/licenses/LICENSE-2.0"
distribution "repo"
}
}
developers {
developer {
id "electronstudio"
name "Electron Studio"
email "[email protected]"
}
}
scm {
url "https://github.com/electronstudio/"
}
}
publishing {
publications {
mavenPublication(MavenPublication) {
from components.java
artifact sourcesJar {
classifier "sources"
}
artifact javadocJar {
classifier "javadoc"
}
groupId 'uk.co.electronstudio.retrowar'
artifactId 'retrowar-common'
version version
pom.withXml {
def root = asNode()
root.appendNode('description', 'LibGDX extension library')
root.appendNode('name', 'retrowar-common')
root.appendNode('url', 'https://github.com/electronstudio/retrowar-common')
root.children().last() + pomConfig
}
}
}
publish.dependsOn jar, sourcesJar, javadocJar, generatePomFileForMavenPublicationPublication
}