From 7ad02f1b5c27cd0831293b9ec1dcfe2517386114 Mon Sep 17 00:00:00 2001 From: Brad Barnhill Date: Thu, 11 Apr 2024 23:00:47 -0500 Subject: [PATCH] remove unnecessary dependencies and gradle tasks --- README.md | 2 +- build.gradle.kts | 19 +------------------ gradle.properties | 2 +- gradle/libs.versions.toml | 5 +---- 4 files changed, 4 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index c86e900..832d9c9 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ This library was designed to give an easy class for developers to use when they The jar is available in Maven Central and can be included via gradle: ```Gradle -implementation 'com.pnuema.java:barcode:2.6.2' +implementation 'com.pnuema.java:barcode:2.6.3' ``` Then use the library to generate a barcode via: diff --git a/build.gradle.kts b/build.gradle.kts index 6dcc58e..61d6d0a 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -10,7 +10,6 @@ plugins { id("java") id("signing") - alias(libs.plugins.kotlin.jvm) alias(libs.plugins.dokka) alias(libs.plugins.maven.publish) alias(libs.plugins.gradle.cachefix).apply(false) @@ -21,7 +20,6 @@ version = project.properties["VERSION_NAME"].toString() dependencies { implementation(libs.dokka.gradle) - implementation(libs.kotlin.gradle) testImplementation(libs.junit) } @@ -61,21 +59,6 @@ tasks { dokkaHtml { outputDirectory.set(file(dokkaOutputDir)) - dokkaSourceSets { - named("main") - } - } - - compileKotlin { - kotlinOptions { - jvmTarget = javaVersion.toString() - } - } - - compileTestKotlin { - kotlinOptions { - jvmTarget = javaVersion.toString() - } } artifacts { @@ -87,7 +70,7 @@ tasks { afterEvaluate { tasks.named("generateMetadataFileForMavenPublication") { dependsOn.add(tasks.named("dokkaJavadocJar")) - dependsOn.add(tasks.named("kotlinSourcesJar")) + dependsOn.add(tasks.named("sourcesJar")) } } } \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 29032d0..b487ea2 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ GROUP=com.pnuema.java -VERSION_NAME=2.6.2 +VERSION_NAME=2.6.3 POM_ARTIFACT_ID=barcode POM_NAME=Barcode-Java diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 334b286..06879f5 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,19 +1,16 @@ [versions] vanniktech-maven-publish = "0.28.0" junit = "4.13.2" -kotlin= "1.9.22" tomlChecker = "0.51.0" gradleCacheFix = "3.0.1" dokka = "1.9.20" [libraries] dokka-gradle = { module = "org.jetbrains.dokka:dokka-gradle-plugin", version.ref = "dokka" } -kotlin-gradle = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" } junit = { module = "junit:junit", version.ref = "junit" } [plugins] maven-publish = { id = "com.vanniktech.maven.publish", version.ref = "vanniktech-maven-publish" } gradle-cachefix = { id = "org.gradle.android.cache-fix", version.ref = "gradleCacheFix" } dokka = { id = "org.jetbrains.dokka", version.ref = "dokka" } -toml-version-checker = { id = "com.github.ben-manes.versions", version.ref = "tomlChecker" } -kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" } \ No newline at end of file +toml-version-checker = { id = "com.github.ben-manes.versions", version.ref = "tomlChecker" } \ No newline at end of file