forked from MinicraftPlus/minicraft-plus-revived
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
83 lines (73 loc) · 2.15 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
plugins {
id 'java'
id 'application'
id 'maven-publish'
id "com.github.johnrengelman.shadow" version "7.1.2"
}
project.version = '2.1.0-dev2'
group = "java.minicraft"
archivesBaseName = "minicraft-plus"
def ENV = System.getenv()
sourceCompatibility = 8
mainClassName = 'minicraft.core.Game'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
repositories {
mavenCentral()
maven {
url "https://www.jabylon.org/maven/"
}
}
dependencies {
implementation 'org.jetbrains:annotations:23.0.0'
implementation 'org.xbill:dns:2.0.8'
implementation 'org.json:json:20211205'
implementation 'com.mashape.unirest:unirest-java:1.4.9'
implementation 'org.tinylog:tinylog-api:2.4.1'
implementation 'org.tinylog:tinylog-impl:2.4.1'
}
java {
withSourcesJar()
}
shadowJar {
archivesBaseName = 'minicraft_plus'
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)
}
}
}
}
}