1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
|
//plugins {
// id "com.jfrog.bintray" version "1.6"
//}
repositories {
jcenter()
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'maven'
targetCompatibility='1.7'
sourceCompatibility='1.7'
group 'org.dpolivaev.mnemonicsetter'
version='0.6'
jar.baseName = 'mnemonicsetter'
/*
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
publications = ['mnemonicsetter']
pkg {
repo = 'freeplane'
name = 'mnemonicsetter'
userOrg = 'freeplane'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/dpolivaev/mnemonicsetter.git'
version {
name = project.version
}
}
}
*/
task sourceJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
/*
publishing {
publications {
mnemonicsetter(MavenPublication) {
from components.java
artifactId 'mnemonicsetter'
artifact sourceJar {
classifier "sources"
}
artifact javadocJar {
classifier "javadoc"
}
}
}
repositories {
maven { url "${project.gradle.gradleUserHomeDir}/local-artifacts" }
}
}
*/
task createPom << {
pom {
artifactId = 'mnemonicsetter'
project {
inceptionYear '2016'
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
}
}.writeTo("pom.xml")
}
dependencies {
testCompile 'junit:junit:4.12',
'org.hamcrest:hamcrest-all:1.3',
'org.mockito:mockito-all:1.10.19'
}
|