Skip to content

Commit

Permalink
Fix Jitpack (#23)
Browse files Browse the repository at this point in the history
* fix: jitpack build

* misc: change paper-api version

* misc: bump version

* misc: switch to jvmToolchain

* fix: exclude development from global build

* fix: exclude jitpack including development

* fix: add jitpack.yml config

* fix: further exclude

* fix: use foojay

* misc: remove jitpack.yml
  • Loading branch information
DebitCardz authored Nov 27, 2023
1 parent 0646b4c commit e6dd71e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
13 changes: 9 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
plugins {
kotlin("jvm") version "1.9.20"

id("maven-publish")
`maven-publish`
}

val githubActor = project.findProperty("gpr.user") as String? ?: System.getenv("GITHUB_ACTOR")
val githubToken = project.findProperty("gpr.key") as String? ?: System.getenv("GITHUB_TOKEN")

group = "me.tech"
version = "1.4.1"
version = "1.4.2"

repositories {
mavenCentral()
Expand All @@ -17,8 +17,13 @@ repositories {
}

dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib:1.9.20")
compileOnly("io.papermc.paper:paper-api:1.20.2-R0.1-SNAPSHOT")
implementation(kotlin("stdlib"))

compileOnly("io.papermc.paper:paper-api:1.19.4-R0.1-SNAPSHOT")
}

kotlin {
jvmToolchain(17)
}

java {
Expand Down
13 changes: 12 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.7.0"
}

rootProject.name = "mc-chestui-plus"
include("development")

if(System.getenv("JITPACK") != null) {
include("development")

startParameter.excludedTaskNames += ":development:build"
startParameter.excludedTaskNames += ":development:compileJava"
startParameter.excludedTaskNames += ":development:compileKotlin"
}

0 comments on commit e6dd71e

Please sign in to comment.