-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
57 lines (53 loc) · 1.59 KB
/
build.gradle.kts
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
val ENV = System.getenv()
subprojects {
apply(plugin = "java")
repositories {
maven("https://repo.papermc.io/repository/maven-public/") {
name = "PaperMC"
}
exclusiveContent {
forRepository {
maven("https://api.modrinth.com/maven") {
name = "Modrinth"
}
}
filter {
includeGroup("maven.modrinth")
}
}
}
tasks.withType<JavaCompile>().configureEach {
options.encoding = "UTF-8"
options.release.set(17)
}
}
tasks {
// create("github") {
// dependsOn("remapJar")
//
// onlyIf {
// ENV["GITHUB_TOKEN"] != null
// }
//
// doLast {
// val date = LocalDate.now().format(DateTimeFormatter.ofPattern("yyyy.MM.dd"))
//
// val github = GitHub.connectUsingOAuth(ENV["GITHUB_TOKEN"] as String)
// val repository = github.getRepository(ENV["GITHUB_REPOSITORY"])
//
// repository.listReleases().forEach {
// if (it.tagName == date) {
// it.delete()
// }
// }
//
// val releaseBuilder = GHReleaseBuilder(repository, date)
// releaseBuilder.name("MangoPlex SMP ${project.version}")
// releaseBuilder.body("New version just came out!")
// releaseBuilder.commitish("main")
//
// val ghRelease = releaseBuilder.create()
// ghRelease.uploadAsset(remapJar.get().archiveFile.get().asFile, "application/java-archive");
// }
// }
}