sewy/build.gradle

56 lines
1.4 KiB
Groovy
Raw 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-01-29 03:58:07 +03:00
version '1.2.1'
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/commons-io/commons-io
implementation group: 'commons-io', name: 'commons-io', version: '2.11.0'
// 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
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/bvn13/sewy")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("TOKEN")
}
}
}
publications {
gpr(MavenPublication) {
from(components.java)
}
}
2022-01-28 12:49:54 +03:00
}