Skip to content

Commit

Permalink
Maven publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
Almighty-Satan committed Mar 27, 2023
1 parent 7402f5f commit 7c2a4c0
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
2 changes: 0 additions & 2 deletions build.gradle.kts

This file was deleted.

28 changes: 26 additions & 2 deletions buildSrc/src/main/kotlin/jaskl.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
plugins {
id("java")
id("checkstyle")
id("maven-publish")
}

checkstyle {
configDirectory.set(File("../"))
toolVersion = "9.3"
}

group = "com.github.almightysatan"
version = "1.0-SNAPSHOT"
group = "com.github.almighty-satan"
version = "1.0.0"

repositories {
mavenCentral()
Expand All @@ -25,3 +26,26 @@ dependencies {
tasks.getByName<Test>("test") {
useJUnitPlatform()
}

publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
pom {
name.set("JASKL")
description.set("Just Another Simple Konfig Library")
url.set("https://github.com/Almighty-Satan/JASKL")
}
artifactId = "jaskl-${project.name}"
}
repositories {
maven {
setUrl("https://repo.varoplugin.de/repository/maven-releases/")
credentials {
username = project.findProperty("repouser") as? String
password = project.findProperty("repopassword") as? String
}
}
}
}
}

0 comments on commit 7c2a4c0

Please sign in to comment.