diff --git a/.gitignore b/.gitignore index 48254a71..11ed5a7d 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,6 @@ hsdis-*.* # Ignore Gradle build output directory build + +# Local Gradle configuration +local.properties diff --git a/lib/build.gradle.kts b/lib/build.gradle.kts index 7c3a998d..3867ab57 100644 --- a/lib/build.gradle.kts +++ b/lib/build.gradle.kts @@ -4,8 +4,14 @@ plugins { // Apply the java-library plugin for API and implementation separation. `java-library` + + // https://docs.gradle.org/current/userguide/publishing_maven.html + `maven-publish` } +group = "org.toktok" +version = "0.3.0" + repositories { // Use Maven Central for resolving dependencies. mavenCentral() @@ -33,3 +39,12 @@ testing { } } } + +publishing { + publications { + create("maven") { + artifactId = "tox4j-c" + from(components["java"]) + } + } +}