-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
124 lines (105 loc) · 3.02 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
plugins {
id 'java-library'
id 'maven-publish'
id 'eclipse'
}
def ENV = System.getenv()
repositories {
mavenCentral()
maven {
url "https://maven.fabricmc.net/"
}
maven {
url 'https://jitpack.io'
}
}
sourceCompatibility = '16'
targetCompatibility = '16'
version = providerVersion
group = "io.github.pseudodistant"
archivesBaseName = "MinicraftGameProvider"
dependencies {
compileOnly 'com.github.skeeto:Minicraft:21e7007696'
compileOnly group: 'org.jetbrains', name: 'intellij-fernflower', version: '1.2.1.16'
implementation group: 'net.fabricmc', name: 'fabric-loader', version: '0.15.3'
//mixin requirements:
api("net.fabricmc:sponge-mixin:0.11.4+mixin.0.8.5") {
exclude module: 'launchwrapper'
exclude module: 'guava'
}
implementation 'com.google.guava:guava:21.0'
implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.7'
implementation group: 'org.ow2.asm', name: 'asm', version: asmVersion
implementation group: 'org.ow2.asm', name: 'asm-analysis', version: asmVersion
implementation group: 'org.ow2.asm', name: 'asm-commons', version: asmVersion
implementation group: 'org.ow2.asm', name: 'asm-tree', version: asmVersion
implementation group: 'org.ow2.asm', name: 'asm-util', version: asmVersion
api 'net.fabricmc:tiny-mappings-parser:0.3.0+build.17'
api 'net.fabricmc:tiny-remapper:0.8.2'
api 'net.fabricmc:access-widener:2.1.0'
implementation 'org.ow2.sat4j:org.ow2.sat4j.core:2.3.6'
implementation 'org.ow2.sat4j:org.ow2.sat4j.pb:2.3.6'
implementation 'org.tinylog:tinylog-api:2.4.1'
implementation 'org.tinylog:tinylog-impl:2.4.1'
implementation 'org.jetbrains:annotations:23.0.0'
implementation 'com.mashape.unirest:unirest-java:1.4.9'
implementation 'org.json:json:20220320'
//implementation 'com.konghq:unirest-java:3.13.10'
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'
// Unit testing for mod metadata
implementation('org.junit.jupiter:junit-jupiter:5.8.2')
}
java {
withSourcesJar()
}
jar {
manifest {
attributes(
'Class-Path': configurations.runtimeClasspath.collect { it.getName() }.join(' '),
'Specification-Version': 8.0,
'Multi-Release': 'true'
)
}
}
sourceSets {
main {
java {
srcDir 'src'
}
}
}
publishing {
publications {
mavenJava(MavenPublication) {
artifact(jar)
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/distant/minifabric/'
credentials {
username 'distant'
password 'Ay2Dv7,E9seoubgHLKhiguj897y'
}
authentication {
basic(BasicAuthentication)
}
}
}
}
}