-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
96 lines (80 loc) · 2.24 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
buildscript {
repositories {
mavenCentral()
gradlePluginPortal()
}
}
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
apply plugin: 'java'
//apply plugin: 'org.spongepowered.mixin'
version = "${mod_version}"
group = mod_base_package
archivesBaseName = mod_id
java.toolchain.languageVersion = JavaLanguageVersion.of(21)
repositories {
maven {
name 'Cleanroom Maven'
url 'https://maven.cleanroommc.com/'
}
maven {
url "https://repo.cleanroommc.com/snapshots"
}
mavenCentral()
}
ext {
// Do not change the order unless it is required so
lwjglLibraries = [
[
'lwjgl3-glfw', 'lwjgl3-jemalloc', 'lwjgl3-openal',
'lwjgl3-opengl', 'lwjgl3-stb', 'lwjgl3-tinyfd', 'lwjgl3'
]
]
}
dependencies {
lwjglLibraries[0].each {
compileOnly "org.lwjgl3:$it:3.3.4-27-CLEANROOM"
}
compileOnly 'org.apache.commons:commons-lang3:3.17.0'
compileOnly 'com.google.code.findbugs:jsr305:3.0.2'
compileOnly 'net.java.dev.jna:jna:5.16.0'
compileOnly 'net.java.dev.jna:jna-platform:5.16.0'
compileOnly 'com.github.oshi:oshi-core:6.6.6'
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}
jar {
exclude("net/**")
manifest {
attributes([
'Specification-Title': mod_id,
'Specification-Vendor': mod_authors,
'Specification-Version': '1', // We are version 1 of ourselves
'Implementation-Title': project.name,
'Implementation-Version': mod_version,
'Implementation-Vendor': mod_authors,
'Implementation-Timestamp': new Date().format('yyyy-MM-dd\'T\'HH:mm:ssZ')
])
}
}
publishing {
repositories {
maven {
name = "outlands"
url = "https://maven.outlands.top/releases"
credentials(PasswordCredentials)
authentication {
basic(BasicAuthentication)
}
}
}
publications {
maven(MavenPublication) {
groupId = "com.cleanroommc"
artifactId = "lwjglxx"
version = mod_version
from components.java
}
}
}