-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
81 lines (73 loc) · 2.3 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
import net.minecraftforge.gradleutils.PomUtils
plugins {
id 'java-library'
id 'maven-publish'
id 'net.minecraftforge.gradleutils' version '2.3.5'
}
repositories {
mavenCentral()
maven { url = 'https://reposilite.c0d3m4513r.com/Ketting/' }
maven { url = 'https://reposilite.c0d3m4513r.com/Forge/' }
mavenLocal()
}
dependencies {
compileOnly 'org.jetbrains:annotations:23.0.0'
api(libs.bundles.asm) // Needed by all the black magic
}
java {
toolchain.languageVersion = JavaLanguageVersion.of(17)
withSourcesJar()
}
tasks.withType(JavaCompile) {
options.compilerArgs << '-Xlint:-unchecked'
}
group = 'org.kettingpowered'
version = System.getenv("VERSION") ?: 'dev-ver'
publishing {
publications.register('mavenJava', MavenPublication).configure {
from components.java
artifactId = 'kettingcommon'
pom {
name = project.name
description = 'Version specific things needed in kettinglauncher and the server itself'
url = "https://github.com/kettingpowered/kettingcommon"
developers {
developer {
id = "justred23"
name = "JustRed23"
}
developer {
id = "c0d3m4513r"
name = "C0D3 M4513R"
}
}
PomUtils.setGitHubDetails(pom, 'kettingpowered', 'kettingcommon')
}
}
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/kettingpowered/kettingcommon")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
maven {
name = 'kettingRepo'
credentials {
username = System.getenv("KETTINGUSERNAME")
password = System.getenv("KETTINGPASSWORD")
}
url = "https://reposilite.c0d3m4513r.com/Ketting/"
}
maven {
name = 'kettingRepo-backup'
credentials {
username = System.getenv("KETTINGUSERNAME")
password = System.getenv("KETTINGPASSWORD")
}
url = "https://repo.kettingpowered.org/Ketting/"
}
}
}