Skip to content

Commit

Permalink
Make this publishable. Include a proper version
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinvandenbreemen committed Nov 5, 2023
1 parent 2e02005 commit 1e21a3a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
20 changes: 19 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
plugins {
kotlin("jvm") version "1.8.21"
application
java
`maven-publish`
`java-library`
}

group = "com.vandenbreemen.ktt"
version = "1.0-SNAPSHOT"
version = "1.0.0"

repositories {
mavenCentral()
Expand Down Expand Up @@ -78,4 +81,19 @@ val fatJar = task("FatJar", type = Jar::class) {
into("./")
}
println("Built and copied $jarName")
}

// Based on https://github.com/gradle/kotlin-dsl-samples/blob/master/samples/maven-publish/build.gradle.kts
val sourcesJar by tasks.registering(Jar::class) {
classifier = "sources"
from(sourceSets.main.get().allSource)
}

publishing {
publications {
register("mavenJava", MavenPublication::class) {
from(components["java"])
artifact(sourcesJar.get())
}
}
}
1 change: 1 addition & 0 deletions src/main/resources/about.dat
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ by Enrico Piazza
[email protected] (source: http://www.ae.metu.edu.tr/~cengiz/airplane-ascii.html)
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

VERSION 1.0.0

0 comments on commit 1e21a3a

Please sign in to comment.