Skip to content

Commit

Permalink
#1 - Added basic publishing info
Browse files Browse the repository at this point in the history
  • Loading branch information
blondacz committed Apr 24, 2023
1 parent d872f02 commit f26031f
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
group=dev.g4s
version=0.1.0-SNAPSHOT
archivesBaseName = "log-writer_2.13"
46 changes: 46 additions & 0 deletions lib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ plugins {
`java-library`
id("com.github.maiflai.scalatest") version "0.32"
`maven-publish`
signing
}

repositories {
Expand All @@ -19,3 +20,48 @@ dependencies {
testImplementation("org.scalatest:scalatest_2.13:3.2.0")
testRuntimeOnly("com.vladsch.flexmark:flexmark-all:0.35.10")
}

java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}

publishing {
publications {
create<MavenPublication>("log-writer") {
artifactId = "log-writer_2.13"
from(components["java"])
pom {
name.set("dev.g4s:log-writer_2.13")
packaging = "jar"
description.set("Generation of the performance report log")
url.set("https://github.com/blondacz/log-writter")
licenses {
license {
name.set("MIT License")
url.set("https://github.com/blondacz/log-writter/blob/main/LICENSE")
}
}
developers {
developer {
id.set("blondacz")
name.set("Tomas Klubal")
email.set("tomas.klubal@gmail.com")
}
}
scm {
connection.set("scm:git:https://github.com/blondacz/log-writter.git")
developerConnection.set("scm:git:https://github.com/blondacz/log-writter.git")
url.set("https://github.com/blondacz/log-writter")
}
}
}
}
repositories {
maven {
url = uri(layout.buildDirectory.dir("repo"))
name = "test"
}
}
}
3 changes: 3 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@

plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.4.0"
}
rootProject.name = "log-writter"
include("lib")

0 comments on commit f26031f

Please sign in to comment.