Bitcoin seed generation and offline tools
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

99 lines
2.8 KiB

plugins {
id 'java'
id 'application'
id 'maven-publish'
id 'com.palantir.git-version' version '0.12.3'
}
repositories {
maven {
url "https://repo.rudefox.io/repository/maven-releases/"
}
mavenCentral()
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
group 'io.rudefox'
application {
mainClassName = 'io.rudefox.burrow.RudefoxBurrow'
}
def isRelease = versionDetails().commitDistance == 0 &&
versionDetails().isCleanTag &&
((versionDetails().branchName == 'master') || (versionDetails().branchName == 'null'))
version isRelease ? gitVersion.call() : gitVersion.call() + "-${versionDetails().branchName}-SNAPSHOT"
println "${group}:${project.name}:${version}" + ' ' + (isRelease ? '(RELEASE)' : '(SNAPSHOT)')
run {
standardInput = System.in
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
def junitVersion = "5.6.2"
tasks.withType(Test) {
useJUnitPlatform()
}
dependencies {
compile 'io.rudefox:vixen:0.0.3'
compile 'info.picocli:picocli:4.5.1'
compile 'com.google.zxing:core:3.4.0'
compile 'com.diogonunes:JColor:5.0.0'
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 {
distro(MavenPublication) {
from components.java
artifact distZip
artifact distTar
pom {
name = 'Rudefox Burrow'
description = 'Bitcoin offline seed generation and tools'
url = 'https://rudefox.io/burrow'
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")
}
}
}
}