-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
66 lines (56 loc) · 1.7 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
plugins {
id 'java-library'
id 'application'
id 'maven-publish'
}
group 'org.moddingx'
java.toolchain.languageVersion = JavaLanguageVersion.of(21)
repositories {
mavenCentral()
}
dependencies {
implementation 'jakarta.annotation:jakarta.annotation-api:3.0.0'
implementation 'net.sf.jopt-simple:jopt-simple:5.0.4'
implementation 'org.zoomba-lang:spark-core:3.0'
implementation 'com.google.guava:guava:33.2.1-jre'
implementation 'com.google.code.gson:gson:2.11.0'
implementation 'org.slf4j:slf4j-api:2.0.13'
runtimeOnly 'org.slf4j:slf4j-jdk14:2.0.13'
implementation(platform('org.eclipse.jetty:jetty-bom')) { version { strictly '[11.0.21,12.0.0)' } }
}
application.mainClass = "org.moddingx.modbadges.Main"
jar {
manifest.attributes([
"Main-Class" : application.mainClass.get(),
"Automatic-Module-Name" : "org.moddingx.modbadges",
"Implementation-Version": project.version
])
}
task sourcesJar(type: Jar, dependsOn: classes) {
archiveClassifier = 'sources'
from sourceSets.main.allSource
}
build.dependsOn sourcesJar
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
pom {
licenses {
license {
name = "The Apache License, Version 2.0"
url = "https://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
}
}
}
repositories {
maven {
name 'moddingx'
url 'https://maven.moddingx.org/release'
credentials(PasswordCredentials)
}
}
}