Skip to content

Commit

Permalink
remove unnecessary dependencies and gradle tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
barnhill committed Apr 12, 2024
1 parent 721eff5 commit 7ad02f1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 24 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
19 changes: 1 addition & 18 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -21,7 +20,6 @@ version = project.properties["VERSION_NAME"].toString()

dependencies {
implementation(libs.dokka.gradle)
implementation(libs.kotlin.gradle)
testImplementation(libs.junit)
}

Expand Down Expand Up @@ -61,21 +59,6 @@ tasks {

dokkaHtml {
outputDirectory.set(file(dokkaOutputDir))
dokkaSourceSets {
named("main")
}
}

compileKotlin {
kotlinOptions {
jvmTarget = javaVersion.toString()
}
}

compileTestKotlin {
kotlinOptions {
jvmTarget = javaVersion.toString()
}
}

artifacts {
Expand All @@ -87,7 +70,7 @@ tasks {
afterEvaluate {
tasks.named("generateMetadataFileForMavenPublication") {
dependsOn.add(tasks.named("dokkaJavadocJar"))
dependsOn.add(tasks.named("kotlinSourcesJar"))
dependsOn.add(tasks.named("sourcesJar"))
}
}
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 1 addition & 4 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -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" }
toml-version-checker = { id = "com.github.ben-manes.versions", version.ref = "tomlChecker" }

0 comments on commit 7ad02f1

Please sign in to comment.