1- import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2- import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
1+ import dev.freya02.botcommands.plugins.configureJarArtifact
2+ import dev.freya02.botcommands.tasks.GenerateBCInfoTask
3+ import dev.freya02.botcommands.utils.registerBucket4JDocs
4+ import dev.freya02.botcommands.utils.registerJetbrainsAnnotationsDocs
5+ import dev.freya02.botcommands.utils.registerSourceSet
36
47plugins {
5- id(" BotCommands-conventions" )
6- id(" BotCommands-publish-conventions" )
8+ id(" repositories-conventions" )
9+ id(" kotlin-conventions" )
10+ id(" publish-conventions" )
11+ id(" dokka-conventions" )
12+
713 alias(libs.plugins.ksp)
814}
915
@@ -134,16 +140,6 @@ dependencies {
134140 testImplementation(libs.kotlin.metadata)
135141}
136142
137- tasks.named<JavaCompile >(" compileTestJava" ) {
138- options.release = 24
139- }
140-
141- tasks.named<KotlinCompile >(" compileTestKotlin" ) {
142- compilerOptions {
143- jvmTarget = JvmTarget .JVM_24
144- }
145- }
146-
147143tasks.withType<Test > {
148144 useJUnitPlatform()
149145
@@ -166,6 +162,9 @@ sourceSets {
166162dokka {
167163 dokkaSourceSets.configureEach {
168164 suppressGeneratedFiles = false
165+
166+ registerBucket4JDocs()
167+ registerJetbrainsAnnotationsDocs()
169168 }
170169}
171170
@@ -181,8 +180,10 @@ kotlin {
181180 }
182181}
183182
184- configurePublishedJarArtifact(
185- artifactId = " BotCommands-core" ,
186- description = " Includes a core set of features bots typically need." ,
187- url = " https://github.com/freya022/BotCommands/tree/3.X/BotCommands-core" ,
188- )
183+ publishedProjectEnvironment {
184+ configureJarArtifact(
185+ artifactId = " BotCommands-core" ,
186+ description = " Includes a core set of features bots typically need." ,
187+ url = " https://github.com/freya022/BotCommands/tree/3.X/BotCommands-core" ,
188+ )
189+ }
0 commit comments