Source jars

This commit is contained in:
DBotThePony 2024-02-03 16:20:10 +07:00
parent d91e169a95
commit d02cdca524
Signed by: DBot
GPG Key ID: DCC23B5715498507
10 changed files with 31 additions and 56 deletions

View File

@ -42,6 +42,21 @@ subprojects {
}
}
tasks {
create("sourceJar", org.gradle.jvm.tasks.Jar::class.java) {
archiveClassifier.set("sources")
from(sourceSets.main.get().allSource)
}
}
kotlin {
jvmToolchain(17)
}
tasks.test {
useJUnitPlatform()
}
publishing {
repositories {
maven {

View File

@ -30,6 +30,7 @@ publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
artifact(tasks["sourceJar"])
pom {
dependencies {

View File

@ -31,6 +31,7 @@ publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
artifact(tasks["sourceJar"])
pom {
dependencies {

View File

@ -7,11 +7,11 @@ projectGroup=ru.dbotthepony.kommons
guavaDepVersion=33.0.0
kommonsVersion=1.0
coreVersion=1.0
ioVersion=1.0
networkingVersion=1.0
mathVersion=1.0
collectVersion=1.0
guavaVersion=1.0
linearAlgebraVersion=1.0
kommonsVersion=1.0.1
coreVersion=1.0.1
ioVersion=1.0.1
networkingVersion=1.0.1
mathVersion=1.0.1
collectVersion=1.0.1
guavaVersion=1.0.1
linearAlgebraVersion=1.0.1

View File

@ -21,18 +21,11 @@ dependencies {
implementation("com.google.guava:guava:$guavaDepVersion-jre")
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(17)
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
artifact(tasks["sourceJar"])
pom {
dependencies {

View File

@ -20,18 +20,11 @@ dependencies {
implementation(project(":math"))
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(17)
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
artifact(tasks["sourceJar"])
pom {
dependencies {

View File

@ -19,18 +19,11 @@ dependencies {
implementation(project(":core"))
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(17)
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
artifact(tasks["sourceJar"])
pom {
dependencies {

View File

@ -20,18 +20,11 @@ dependencies {
implementation(project(":core"))
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(17)
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
artifact(tasks["sourceJar"])
pom {
dependencies {

View File

@ -20,18 +20,11 @@ dependencies {
implementation(project(":core"))
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(17)
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
artifact(tasks["sourceJar"])
pom {
dependencies {

View File

@ -21,18 +21,11 @@ dependencies {
implementation(project(":collect"))
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(17)
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
artifact(tasks["sourceJar"])
pom {
dependencies {