Source jars
This commit is contained in:
parent
d91e169a95
commit
d02cdca524
@ -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 {
|
publishing {
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
|
@ -30,6 +30,7 @@ publishing {
|
|||||||
publications {
|
publications {
|
||||||
create<MavenPublication>("mavenJava") {
|
create<MavenPublication>("mavenJava") {
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
|
artifact(tasks["sourceJar"])
|
||||||
|
|
||||||
pom {
|
pom {
|
||||||
dependencies {
|
dependencies {
|
||||||
|
@ -31,6 +31,7 @@ publishing {
|
|||||||
publications {
|
publications {
|
||||||
create<MavenPublication>("mavenJava") {
|
create<MavenPublication>("mavenJava") {
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
|
artifact(tasks["sourceJar"])
|
||||||
|
|
||||||
pom {
|
pom {
|
||||||
dependencies {
|
dependencies {
|
||||||
|
@ -7,11 +7,11 @@ projectGroup=ru.dbotthepony.kommons
|
|||||||
|
|
||||||
guavaDepVersion=33.0.0
|
guavaDepVersion=33.0.0
|
||||||
|
|
||||||
kommonsVersion=1.0
|
kommonsVersion=1.0.1
|
||||||
coreVersion=1.0
|
coreVersion=1.0.1
|
||||||
ioVersion=1.0
|
ioVersion=1.0.1
|
||||||
networkingVersion=1.0
|
networkingVersion=1.0.1
|
||||||
mathVersion=1.0
|
mathVersion=1.0.1
|
||||||
collectVersion=1.0
|
collectVersion=1.0.1
|
||||||
guavaVersion=1.0
|
guavaVersion=1.0.1
|
||||||
linearAlgebraVersion=1.0
|
linearAlgebraVersion=1.0.1
|
||||||
|
@ -21,18 +21,11 @@ dependencies {
|
|||||||
implementation("com.google.guava:guava:$guavaDepVersion-jre")
|
implementation("com.google.guava:guava:$guavaDepVersion-jre")
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.test {
|
|
||||||
useJUnitPlatform()
|
|
||||||
}
|
|
||||||
|
|
||||||
kotlin {
|
|
||||||
jvmToolchain(17)
|
|
||||||
}
|
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
create<MavenPublication>("mavenJava") {
|
create<MavenPublication>("mavenJava") {
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
|
artifact(tasks["sourceJar"])
|
||||||
|
|
||||||
pom {
|
pom {
|
||||||
dependencies {
|
dependencies {
|
||||||
|
@ -20,18 +20,11 @@ dependencies {
|
|||||||
implementation(project(":math"))
|
implementation(project(":math"))
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.test {
|
|
||||||
useJUnitPlatform()
|
|
||||||
}
|
|
||||||
|
|
||||||
kotlin {
|
|
||||||
jvmToolchain(17)
|
|
||||||
}
|
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
create<MavenPublication>("mavenJava") {
|
create<MavenPublication>("mavenJava") {
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
|
artifact(tasks["sourceJar"])
|
||||||
|
|
||||||
pom {
|
pom {
|
||||||
dependencies {
|
dependencies {
|
||||||
|
@ -19,18 +19,11 @@ dependencies {
|
|||||||
implementation(project(":core"))
|
implementation(project(":core"))
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.test {
|
|
||||||
useJUnitPlatform()
|
|
||||||
}
|
|
||||||
|
|
||||||
kotlin {
|
|
||||||
jvmToolchain(17)
|
|
||||||
}
|
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
create<MavenPublication>("mavenJava") {
|
create<MavenPublication>("mavenJava") {
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
|
artifact(tasks["sourceJar"])
|
||||||
|
|
||||||
pom {
|
pom {
|
||||||
dependencies {
|
dependencies {
|
||||||
|
@ -20,18 +20,11 @@ dependencies {
|
|||||||
implementation(project(":core"))
|
implementation(project(":core"))
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.test {
|
|
||||||
useJUnitPlatform()
|
|
||||||
}
|
|
||||||
|
|
||||||
kotlin {
|
|
||||||
jvmToolchain(17)
|
|
||||||
}
|
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
create<MavenPublication>("mavenJava") {
|
create<MavenPublication>("mavenJava") {
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
|
artifact(tasks["sourceJar"])
|
||||||
|
|
||||||
pom {
|
pom {
|
||||||
dependencies {
|
dependencies {
|
||||||
|
@ -20,18 +20,11 @@ dependencies {
|
|||||||
implementation(project(":core"))
|
implementation(project(":core"))
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.test {
|
|
||||||
useJUnitPlatform()
|
|
||||||
}
|
|
||||||
|
|
||||||
kotlin {
|
|
||||||
jvmToolchain(17)
|
|
||||||
}
|
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
create<MavenPublication>("mavenJava") {
|
create<MavenPublication>("mavenJava") {
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
|
artifact(tasks["sourceJar"])
|
||||||
|
|
||||||
pom {
|
pom {
|
||||||
dependencies {
|
dependencies {
|
||||||
|
@ -21,18 +21,11 @@ dependencies {
|
|||||||
implementation(project(":collect"))
|
implementation(project(":collect"))
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.test {
|
|
||||||
useJUnitPlatform()
|
|
||||||
}
|
|
||||||
|
|
||||||
kotlin {
|
|
||||||
jvmToolchain(17)
|
|
||||||
}
|
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
create<MavenPublication>("mavenJava") {
|
create<MavenPublication>("mavenJava") {
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
|
artifact(tasks["sourceJar"])
|
||||||
|
|
||||||
pom {
|
pom {
|
||||||
dependencies {
|
dependencies {
|
||||||
|
Loading…
Reference in New Issue
Block a user