Clean up publish-library.gradle.kts

This commit is contained in:
Edwin Jakobs
2025-09-15 20:51:01 +02:00
parent 15ab357c05
commit 6e328f3871

View File

@@ -7,25 +7,16 @@ plugins {
java java
kotlin("jvm") kotlin("jvm")
`maven-publish` `maven-publish`
} }
val libs = extensions.getByType<VersionCatalogsExtension>().named("libs") val libs = extensions.getByType<VersionCatalogsExtension>().named("libs")
val openrndr = extensions.getByType<VersionCatalogsExtension>().named("openrndr") val openrndr = extensions.getByType<VersionCatalogsExtension>().named("openrndr")
val demo = sourceSets.create("demo") val demo = sourceSets.create("demo")
val main = sourceSets.getByName("main") val main = sourceSets.getByName("main")
val mainImplementation = project.configurations.getByName(main.implementationConfigurationName) val mainImplementation = project.configurations.getByName(main.implementationConfigurationName)
val demoImplementation = project.configurations.getByName(demo.implementationConfigurationName) val demoImplementation = project.configurations.getByName(demo.implementationConfigurationName)
//demoImplementation.dependencies.addAll(mainImplementation.dependencies)
//
//val demo by sourceSets.creating {
//
//
//}
demoImplementation.extendsFrom(mainImplementation) demoImplementation.extendsFrom(mainImplementation)
dependencies { dependencies {
@@ -40,7 +31,6 @@ publishing {
artifactId = property("project.name")?.toString() ?: error("project.name not set") artifactId = property("project.name")?.toString() ?: error("project.name not set")
description = property("project.name")?.toString() ?: error("project.name not set") description = property("project.name")?.toString() ?: error("project.name not set")
version = property("project.version")?.toString() ?: error("project.version not set") version = property("project.version")?.toString() ?: error("project.version not set")
} }
} }
} }