sewy/build.gradle

64 lines
1.5 KiB
Groovy
Raw Permalink Normal View History

2022-01-28 12:49:54 +03:00
plugins {
id 'java'
id 'idea'
2022-01-29 01:26:15 +03:00
id 'maven-publish'
2022-01-28 12:49:54 +03:00
}
group 'me.bvn13'
2022-02-21 02:11:50 +03:00
version '1.2.8'
2022-01-28 12:49:54 +03:00
repositories {
mavenCentral()
}
dependencies {
// https://mvnrepository.com/artifact/org.slf4j/slf4j-api
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.35'
2022-01-28 23:45:02 +03:00
// https://mvnrepository.com/artifact/org.apache.commons/commons-lang3
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'
testImplementation 'ch.qos.logback:logback-classic:1.2.10'
2022-01-28 12:49:54 +03:00
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.8.1'
2022-01-28 12:49:54 +03:00
}
test {
useJUnitPlatform()
}
tasks.withType(Test).configureEach {
maxParallelForks = 1
2022-01-29 01:26:15 +03:00
}
2022-02-21 02:07:35 +03:00
task sourceJar(type: Jar) {
from sourceSets.main.allJava
}
2022-01-29 01:26:15 +03:00
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/bvn13/sewy")
credentials {
2022-01-29 11:18:55 +03:00
username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_USER")
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
2022-01-29 01:26:15 +03:00
}
}
}
publications {
gpr(MavenPublication) {
from(components.java)
}
2022-02-21 02:11:50 +03:00
// mavenJava(MavenPublication) {
// from components.java
//
// artifact sourceJar {
// classifier "sources"
// }
// }
2022-01-29 01:26:15 +03:00
}
2022-01-28 12:49:54 +03:00
}