-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
50 lines (40 loc) · 990 Bytes
/
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
plugins {
id "java"
id "com.modrinth.minotaur" version "2.+"
}
repositories {
flatDir {
dirs "canyon-api"
}
}
dependencies {
compileOnly "com.canyonmodded:canyon-api:1.7.3"
}
def pluginVersion = "1.2.3"
base.archivesName = "my-plugin-" + pluginVersion
def javaVersion = JavaVersion.VERSION_1_8
java {
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
}
jar.from("LICENSE.txt")
processResources {
filesMatching("plugin.yml") {
expand "version": pluginVersion
}
}
modrinth {
token = System.getenv("MINOTAUR_PAT")
syncBodyFrom = rootProject.file("modrinth/readme.md").text
uploadFile = jar
projectId = "my-plugin"
changelog = rootProject.file("modrinth/changelog.md").text
versionName = "My Plugin " + pluginVersion
versionNumber = pluginVersion
gameVersions = ["b1.7.3"]
loaders = ["bukkit"]
}
task modrinthUpload {
dependsOn "modrinth"
dependsOn "modrinthSyncBody"
}