diff --git a/.classpath b/.classpath index 7afb122..8ce7b51 100644 --- a/.classpath +++ b/.classpath @@ -14,23 +14,19 @@ - + - + - - - - - + diff --git a/build.gradle b/build.gradle index a042239..4a607c6 100644 --- a/build.gradle +++ b/build.gradle @@ -1,15 +1,13 @@ -/* - * This file was generated by the Gradle 'init' task. - * - * This generated file contains a sample Java library project to get you started. - * For more details on building Java & JVM projects, please refer to https://docs.gradle.org/8.9/userguide/building_java_projects.html in the Gradle documentation. - */ - plugins { // Apply the java-library plugin for API and implementation separation. id 'java-library' + id 'maven-publish' + id 'com.palantir.git-version' version '4.0.0' } +group 'org.egothor' +version gitVersion() + repositories { // Use Maven Central for resolving dependencies. mavenCentral() @@ -20,12 +18,6 @@ dependencies { testImplementation(libs.junit.jupiter) testRuntimeOnly("org.junit.platform:junit-platform-launcher") - - // This dependency is exported to consumers, that is to say found on their compile classpath. - api(libs.commons.math3) - - // This dependency is used internally, and not exposed to consumers on their own compile classpath. - implementation(libs.guava) } // Apply a specific Java toolchain to ease working on different environments. @@ -43,3 +35,47 @@ tasks.named('test') { // Use JUnit Platform for unit tests. useJUnitPlatform() } + +publishing { + publications { + mavenJava(MavenPublication) { + from components.java + } + } + repositories { + maven { + name = "GiteaMaven" + url = uri("https://gitea.egothor.org/api/packages/Egothor/maven") + + credentials(HttpHeaderCredentials) { + name = "Authorization" + value = "token ${giteaToken}" + } + + authentication { + header(HttpHeaderAuthentication) + } + } + } +} + +gradle.taskGraph.whenReady { taskGraph -> + def banner = """ +\u001B[34m + +8888888888 .d8888b. .d88888b. 88888888888 888 888 .d88888b. 8888888b. +888 d88P Y88b d88P" "Y88b 888 888 888 d88P" "Y88b 888 Y88b +888 888 888 888 888 888 888 888 888 888 888 888 +8888888 888 888 888 888 8888888888 888 888 888 d88P +888 888 88888 888 888 888 888 888 888 888 8888888P" +888 888 888 888 888 888 888 888 888 888 888 T88b +888 Y88b d88P Y88b. .d88P 888 888 888 Y88b. .d88P 888 T88b +8888888888 "Y8888P88 "Y88888P" 888 888 888 "Y88888P" 888 T88b + +\u001B[36m + Project : ${project.name} + Version : ${project.version} +\u001B[0m +""" + println banner +} diff --git a/gradle.properties b/gradle.properties index bccc201..e69de29 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +0,0 @@ -version = 1.0