Skip to content

Commit

Permalink
build: ver 0.1.8; attempt resolve publishing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lokka30 committed Jan 25, 2025
1 parent ee36116 commit 1cedfbf
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 44 deletions.
42 changes: 42 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@

import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion

/*
* Copyright (c) 2025 lokka30 and contributors.
*
Expand Down Expand Up @@ -39,6 +43,44 @@ subprojects {
plugin("com.gradleup.shadow")
}

tasks {
jar {
enabled = false
}

shadowJar {
archiveClassifier = ""
}

compileKotlin {
compilerOptions {
jvmTarget = JvmTarget.JVM_21
apiVersion = KotlinVersion.KOTLIN_2_1
}
}

compileTestKotlin {
compilerOptions {
jvmTarget = JvmTarget.JVM_21
apiVersion = KotlinVersion.KOTLIN_2_1
}
}

compileTestJava {
sourceCompatibility = "21"
targetCompatibility = "21"
}

compileJava {
options.isDeprecation = true
options.encoding = "UTF-8"
}

test {
useJUnitPlatform()
}
}

configure<PublishingExtension> {
repositories {
maven {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#

# Main
version=0.1.7
version=0.1.8
description=User playtime monitoring for MC

# Misc
Expand Down
1 change: 0 additions & 1 deletion playtimestats-plugin-bukkit/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ tasks {
}

shadowJar {
archiveClassifier = ""
dependencies {
relocate("dev.jorel.commandapi", "${project.group}.plugin.bukkit.lib.commandapi")
relocate("org.bstats", "${project.group}.plugin.bukkit.lib.bstats")
Expand Down
43 changes: 1 addition & 42 deletions playtimestats-plugin-core/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion

/*
* Copyright (c) 2025 lokka30 and contributors.
*
Expand All @@ -27,10 +24,6 @@ plugins {
apply(plugin = "java")
apply(plugin = "kotlin")

repositories {
mavenCentral()
}

dependencies {
api(libs.h2)
testImplementation(kotlin("test"))
Expand All @@ -42,43 +35,9 @@ publishing {
if (name == "gpr") {
artifacts.clear()
artifact(tasks.named("shadowJar").get()) {
classifier = "all"
classifier = ""
}
}
}
}
}

tasks {
jar {
enabled = true
}

compileKotlin {
compilerOptions {
jvmTarget = JvmTarget.JVM_21
apiVersion = KotlinVersion.KOTLIN_2_1
}
}

compileTestKotlin {
compilerOptions {
jvmTarget = JvmTarget.JVM_21
apiVersion = KotlinVersion.KOTLIN_2_1
}
}

compileJava {
options.isDeprecation = true
options.encoding = "UTF-8"
}

test {
useJUnitPlatform()
}
}

java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}

0 comments on commit 1cedfbf

Please sign in to comment.