-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
129 lines (105 loc) · 3 KB
/
build.gradle
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
plugins{
id 'base'
id 'java'
id 'java-library'
id 'eclipse'
id 'application'
}
version = '0.6'
def stagingURL = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
def snapshotURL = 'https://oss.sonatype.org/content/repositories/snapshots/'
def descriptions = [
'jmpi-main' : 'The core module of JMPI',
'jmpi-solver-cplex' : 'The solver interface for CPLEX',
'jmpi-solver-gurobi' : 'The solver interface for GUROBI',
'jmpi-solver-mosek' : 'The solver interface for Mosek',
'jmpi-solver-sat4j' : 'The solver interface for SAT4J',
'jmpi-solver-xpress' : 'The solver interface for Xpress',
]
allprojects {
group = 'net.sf.jmpi'
repositories {
mavenCentral()
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'eclipse'
apply plugin: 'signing'
sourceCompatibility = 1.6
targetCompatibility = 1.6
version = parent.version
task sourcesJar(type: Jar, dependsOn:classes) {
from sourceSets.main.allSource
archiveClassifier.set('sources')
}
task javadocJar(type: Jar, dependsOn:javadoc) {
from javadoc.destinationDir
archiveClassifier.set('javadoc')
}
artifacts {
archives jar
archives sourcesJar
archives javadocJar
}
signing {
sign configurations.archives
}
/*
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: stagingURL) {
authentication(userName: sonatypeUsername, password: sonatypePassword)
}
pom.project {
name 'JMPI'
packaging 'jar'
description descriptions[project.name]
url 'http://jmpi.sf.net'
scm {
url 'http://hg.code.sf.net/p/jmpi/hgroot'
connection 'http://hg.code.sf.net/p/jmpi/hgroot'
}
licenses {
license {
name 'GNU Lesser General Public License'
url 'http://www.gnu.org/licenses/lgpl.txt'
distribution 'repo'
}
}
developers {
developer {
id 'lukasiewycz'
name 'Martin Lukasiewycz'
}
}
}
}
}
}*/
}
/* for now ignore all javadoc errors in case of Java 8 */
if (JavaVersion.current().isJava8Compatible()) {
allprojects {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
}
ext {
dateISO = new Date().format("yyyy-MM-dd")
}
/*uploadArchives.doFirst {
println "Sonatype Username: "+sonatypeUsername
println "Private Key: "+project.ext.get("signing.secretKeyRingFile")
println "Private Key ID: "+project.ext.get("signing.keyId")
}*/
task website(type: Copy){
from('src/main/website/') {
include '**/*.html'
}
into 'build/website/'
}