burrow/build.gradle

100 lines
2.8 KiB
Groovy
Raw Normal View History

2020-09-01 12:18:32 +00:00
plugins {
id 'java'
id 'application'
id 'maven-publish'
id 'com.palantir.git-version' version '0.12.3'
}
repositories {
maven {
2020-09-02 20:43:55 +00:00
url "https://repo.rudefox.io/repository/maven-releases/"
2020-09-01 12:18:32 +00:00
}
mavenCentral()
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
group 'io.rudefox'
application {
mainClassName = 'io.rudefox.burrow.RudefoxBurrow'
2020-09-01 12:18:32 +00:00
}
def isRelease = versionDetails().commitDistance == 0 &&
versionDetails().isCleanTag &&
2020-09-02 22:23:09 +00:00
((versionDetails().branchName == 'master') || (versionDetails().branchName == 'null'))
version isRelease ? gitVersion.call() : gitVersion.call() + "-${versionDetails().branchName}-SNAPSHOT"
println "${group}:${project.name}:${version}" + ' ' + (isRelease ? '(RELEASE)' : '(SNAPSHOT)')
2020-09-01 12:18:32 +00:00
run {
standardInput = System.in
}
2020-09-01 13:09:16 +00:00
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
2020-09-01 12:18:32 +00:00
def junitVersion = "5.6.2"
tasks.withType(Test) {
useJUnitPlatform()
}
dependencies {
2020-09-06 13:57:59 +00:00
compile 'io.rudefox:vixen:0.0.3'
compile 'info.picocli:picocli:4.5.1'
2020-09-01 12:18:32 +00:00
compile 'com.google.zxing:core:3.4.0'
compile 'com.diogonunes:JColor:5.0.0'
2020-09-01 12:18:32 +00:00
testCompile 'com.bjdweck.test:commons-test:0.0.1'
testCompile "org.junit.jupiter:junit-jupiter-params:$junitVersion"
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitVersion"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
}
publishing {
publications {
2020-09-01 14:04:28 +00:00
distro(MavenPublication) {
2020-09-01 12:18:32 +00:00
from components.java
2020-09-01 14:04:28 +00:00
artifact distZip
artifact distTar
2020-09-01 12:18:32 +00:00
pom {
name = 'Rudefox Burrow'
description = 'Bitcoin offline seed generation and tools'
2020-09-01 14:04:28 +00:00
url = 'https://rudefox.io/burrow'
2020-09-01 12:18:32 +00:00
developers {
developer {
name = 'B.J. Dweck'
}
}
scm {
developerConnection = 'scm:git:https://git.rudefox.io/rudefox/burrow.git'
url = 'https://git.rudefox.io/rudefox/burrow/'
}
}
}
}
repositories {
maven {
name = "rudefox"
def repoBaseUrl = 'https://repo.rudefox.io/repository'
url = isRelease ? "${repoBaseUrl}/maven-releases/" : "${repoBaseUrl}/maven-snapshots/"
credentials {
username System.getenv("RUDEFOX_MAVEN_USR") ?:
(project.hasProperty('rudefox_maven_username') ? project.rudefox_maven_username : "defualt")
password System.getenv("RUDEFOX_MAVEN_PSW") ?:
(project.hasProperty('rudefox_maven_password') ? project.rudefox_maven_password : "defualt")
}
}
}
}