Skip to content

Commit

Permalink
[ci skip] More CurseGradle stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
mrapplexz committed Nov 8, 2019
1 parent e5dbe93 commit 7667964
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import com.github.breadmoirai.githubreleaseplugin.GithubReleaseExtension
import com.matthewprenger.cursegradle.CurseExtension
import com.matthewprenger.cursegradle.CurseProject
import com.matthewprenger.cursegradle.CurseArtifact
import com.matthewprenger.cursegradle.CurseRelation
import com.matthewprenger.cursegradle.Options
import net.minecraftforge.gradle.user.UserBaseExtension

plugins {
Expand Down Expand Up @@ -38,7 +41,7 @@ val curseforgeApiKey: String? by project
val devBuildNumber: String? by project
val githubAccessToken: String? by project

version = if(devBuildNumber != null) "$modVersion-dev-$devBuildNumber" else modVersion
version = if (devBuildNumber != null) "$modVersion-dev-$devBuildNumber" else modVersion
group = "net.pearx.jebc"
description = modDescription

Expand Down Expand Up @@ -100,6 +103,17 @@ configure<CurseExtension> {
id = curseforgeProjectId
releaseType = "release"
changelog = modChangelog
relations(closureOf<CurseRelation> {
requiredDependency("jei")
requiredDependency("pams-harvestcraft")
})
mainArtifact(tasks.named("jar").get(), closureOf<CurseArtifact> {
displayName = "[$minecraftVersion] Just Enough BrewCraft $version"
})
options(closureOf<Options> {
detectNewerJava = true
})
addGameVersion("Java 10") // hack
})
}

Expand Down

0 comments on commit 7667964

Please sign in to comment.