-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
111 lines (86 loc) · 2.24 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
apply plugin: 'groovy'
apply plugin: 'maven'
apply plugin: 'signing'
//apply plugin: 'codenarc'
group = 'com.complexible.stardog'
version = '6.1.0'
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.1'
}
}
apply plugin: 'java'
apply plugin: 'com.github.johnrengelman.shadow'
repositories {
maven {
url "http://maven.stardog.com"
}
mavenLocal()
mavenCentral()
}
dependencies {
compile 'com.complexible.stardog:client-http:6.1.0'
compile ('org.slf4j:slf4j-api:1.6.1')
compile group: 'org.codehaus.groovy', name: 'groovy-all', version: '2.4.7'
testCompile group: 'junit', name: 'junit', version: '4.4'
}
task sourceJar(type: Jar) {
description 'An archive of the source code for Maven Central'
classifier 'sources'
from sourceSets.main.groovy
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from 'build/docs/javadoc'
}
artifacts {
archives javadocJar, sourceJar
}
signing {
sign configurations.archives
required { gradle.taskGraph.hasTask(uploadArchives) }
}
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: sonatypeUsername, password: sonatypePassword)
}
pom.project {
name 'stardog-groovy'
packaging 'jar'
description 'Stardog Groovy bindings for building Stardog apps'
url 'https://github.com/stardog-union/stardog-groovy'
scm {
url 'scm:git://github.com/stardog-union/stardog-groovy.git'
connection 'scm:git://github.com/stardog-union/stardog-groovyl.git'
developerConnection 'scm:git://github.com/stardog-union/stardog-groovy.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 'albakercp'
name 'Al Baker'
}
}
}
}
}
}
configure(install.repositories.mavenInstaller) {
pom.project {
version '5.3.5'
artifactId 'stardog-groovy'
groupId 'com.complexible.stardog'
}
}