-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
99 lines (81 loc) · 2.79 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
plugins {
id 'java'
id 'java-library'
id 'maven-publish'
id 'java-gradle-plugin'
}
group = 'de.geolykt.starloader'
archivesBaseName = 'gsl-starplane'
def baseVersion = '0.2.0'
targetCompatibility = compileJava.targetCompatibility = '11' // VF is Java 11+ - so we have little other choices for the time being
sourceCompatibility = compileJava.sourceCompatibility = '11'
repositories {
mavenLocal()
maven {
name 'stianloader-maven'
url 'https://stianloader.org/maven/'
}
mavenCentral()
}
dependencies {
// https://mvnrepository.com/artifact/de.geolykt.starloader/sl-deobf
implementation "de.geolykt.starloader:sl-deobf:0.2.0"
// https://mvnrepository.com/artifact/de.geolykt.starloader/reversible-access-setter
implementation "de.geolykt.starloader:reversible-access-setter:1.0.0"
implementation gradleApi()
implementation "org.ow2.asm:asm:9.7"
implementation "org.ow2.asm:asm-tree:9.7"
implementation "org.ow2.asm:asm-util:9.7"
implementation "org.ow2.asm:asm-commons:9.7"
// https://mvnrepository.com/artifact/org.json/json
implementation 'org.json:json:20240303'
// https://mvnrepository.com/artifact/org.vineflower/vineflower
implementation 'org.vineflower:vineflower:1.10.1'
// https://mvnrepository.com/artifact/net.fabricmc/mapping-io
implementation 'net.fabricmc:mapping-io:0.6.1'
implementation 'org.stianloader:softmap:0.1.0-a20240329'
// https://mvnrepository.com/artifact/org.jetbrains/annotations
compileOnly group: 'org.jetbrains', name: 'annotations', version: '24.1.0'
implementation 'org.stianloader:stianloader-remapper:0.1.0-a20240601'
implementation 'org.stianloader:micromixin-remapper:0.2.0-a20240825'
}
gradlePlugin {
// Define the plugin
plugins {
gslStarplanePlugin {
id = project.archivesBaseName
version = baseVersion
implementationClass = 'de.geolykt.starloader.gslstarplane.GslStarplanePlugin'
}
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
archiveClassifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}
publishing {
publications {
plugin(MavenPublication) { publication ->
groupId project.group
artifactId project.archivesBaseName
version baseVersion
from components['java']
//artifact sourcesJar
//artifact javadocJar
}
}
repositories {
if (System.getProperty('publishRepo') != null) {
maven {
url System.getProperty('publishRepo')
allowInsecureProtocol = true
}
} else {
mavenLocal()
}
}
}