forked from CrucibleMC/Grimoire-legacy
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
51 lines (45 loc) · 1.5 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
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.github.breadmoirai:github-release:2.2.12"
}
}
apply plugin: "com.github.breadmoirai.github-release"
rootProject.version = '3.2.11'
subprojects {
apply plugin: 'idea'
apply plugin: 'eclipse'
group = 'io.github.crucible.grimoire'
version = rootProject.version
}
task release() {}
gradle.projectsEvaluated({
githubRelease {
token findProperty('githubKey') ?: 0
owner "Aizistral-Studios"
repo "Grimoire"
tagName "v" + project.version
targetCommitish "master"
releaseName "Grimoire v" + project.version
body new File('gradle/clnotice.md').getText('UTF-8')
draft false
prerelease false
releaseAssets(file('Grimoire-mc1.7.10/build/libs/Grimoire-mc1.7.10-' + project(':Grimoire-mc1.7.10').version + '.jar'), file('Grimoire-mc1.12.2/build/libs/Grimoire-mc1.12.2-' + project(':Grimoire-mc1.12.2').version + '.jar'))
overwrite false
dryRun false
apiEndpoint "https://api.github.com"
client
}
project.subprojects { sub ->
rootProject.tasks.named('githubRelease').get().dependsOn(sub.tasks.named('build').get())
rootProject.tasks.named('release').get().dependsOn(rootProject.tasks.named('githubRelease').get())
if (sub.name.startsWith('Grimoire-mc')) {
rootProject.tasks.named('release').get().dependsOn(sub.tasks.named('curseforge').get())
rootProject.tasks.named('release').get().dependsOn(sub.tasks.named('publish').get())
}
}
})