-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
85 lines (75 loc) · 2.38 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
plugins {
id 'java'
id 'application'
id 'maven-publish'
id "com.github.johnrengelman.shadow" version "7.1.2"
}
project.version = '0.1.2-pre-Alpha'
group = "java.minicraft"
archivesBaseName = "polandball-rpg"
def ENV = System.getenv()
sourceCompatibility = 16
mainClassName = 'minicraft.core.Game'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
repositories {
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
maven { url "https://jitpack.io" }
}
dependencies {
implementation 'org.jetbrains:annotations:23.0.0'
implementation 'org.json:json:20220320'
implementation 'com.konghq:unirest-java:3.13.10'
implementation 'org.tinylog:tinylog-api:2.4.1'
implementation 'org.tinylog:tinylog-impl:2.4.1'
implementation 'com.badlogicgames.gdx:gdx:1.11.0'
implementation 'com.badlogicgames.gdx:gdx-box2d:1.11.0'
implementation 'com.badlogicgames.gdx:gdx-controllers:1.9.13'
implementation 'com.badlogicgames.jamepad:jamepad:2.0.20.0'
}
java {
withSourcesJar()
}
shadowJar {
archivesBaseName = 'polandball_Rpg'
archiveClassifier.set('')
manifest {
attributes(
'Main-Class': mainClassName,
'Implementation-Title': project.name,
'Implementation-Version': project.version,
'SplashScreen-Image': "Minicraft_Splash_Screen_3.png")
}
}
publishing {
publications {
mavenJava(MavenPublication) {
artifact(shadowJar)
artifact(sourcesJar)
pom.withXml {
subprojects.each {
if (it.name != project.testmods_project) {
depNode.appendNode("groupId", it.group)
depNode.appendNode("artifactId", it.name)
depNode.appendNode("version", it.version)
depNode.appendNode("scope", "compile")
}
}
}
}
}
repositories {
if (ENV.MAVEN_PUBLISH_TOKEN) {
maven {
url 'https://repo.repsy.io/mvn/minicraftplus/minicraft'
credentials {
username ENV.MAVEN_PUBLISH_USERNAME
password ENV.MAVEN_PUBLISH_TOKEN
}
authentication {
basic(BasicAuthentication)
}
}
}
}
}