-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
109 lines (96 loc) · 3.2 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
buildscript {
repositories {
mavenCentral()
jcenter()
mavenLocal()
}
dependencies {
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
classpath "org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.8.2"
}
}
group 'com.github.fair-search'
version '1.0.2'
apply plugin: 'java'
apply plugin: 'maven-publish'
apply plugin: 'idea'
apply plugin: 'com.bmuschko.nexus'
apply plugin: 'com.github.kt3k.coveralls'
sourceCompatibility = 1.8
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'DELTR lib',
'Implementation-Version': version
}
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
}
dependencies {
compile "org.apache.lucene:lucene-expressions:7.1.0"
compile group: 'org.apache.commons', name: 'commons-math3', version: '3.6.1'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.8.10'
compile group: 'org.nd4j', name: 'nd4j-native-platform', version: '0.9.1'
compile group: 'org.datavec', name: 'datavec-api', version: '0.9.1'
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'com.mashape.unirest', name: 'unirest-java', version: '1.4.9'
testCompile group: 'org.apache.lucene', name: 'lucene-test-framework', version: '7.1.0'
testCompile 'pl.pragmatists:JUnitParams:1.1.1'
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId 'com.github.fair-search'
artifactId 'fairsearch-deltr'
version '1.0.2'
from components.java
}
}
}
modifyPom {
project {
name 'Fair Search DELTR'
description 'A Java library for disparate exposure in ranking (a learning to rank approach)'
url 'https://github.com/fair-search/fairsearchdeltr-java'
inceptionYear '2018'
scm {
url 'https://github.com/fair-search/fairsearchdeltr-java'
connection 'scm:https://github.com/fair-search/fairsearchdeltr-java.git'
developerConnection 'scm:[email protected]:fair-search/fairsearchdeltr-java.git'
}
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
developers {
developer {
id 'ivan.kitanovski'
name 'Ivan Kitanovski'
email '[email protected]'
}
}
}
}
extraArchive {
sources = true
tests = true
javadoc = true
}
nexus {
sign = true
repositoryUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2'
snapshotRepositoryUrl = 'https://oss.sonatype.org/content/repositories/snapshots'
}
//nexusStaging {
// packageGroup = "org.github.fair-search" //optional if packageGroup == project.getGroup()
// stagingProfileId = "org.github.fair-search" //when not defined will be got from server using "packageGroup"
//}