Adding gradle build

This commit is contained in:
jjos2372
2020-02-26 09:04:49 -03:00
parent 9159a629a2
commit 657ebf57de
7 changed files with 313 additions and 0 deletions

33
build.gradle Normal file
View File

@@ -0,0 +1,33 @@
apply plugin: 'java'
apply plugin: 'maven'
// Publishing stuff
group = 'com.github.jjos2372'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
jcenter()
mavenCentral()
maven { url 'https://jitpack.io' }
}
dependencies {
compile 'org.bitcoinj:bitcoinj-core:0.15.6'
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}