This repository has been archived by the owner on Mar 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle
91 lines (81 loc) · 2.64 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
buildscript {
repositories { jcenter() }
dependencies { classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1' }
}
plugins {
id "org.sonarqube" version "1.0"
}
subprojects {
group = 'edu.wisc.my.restproxy'
version = '3.2.1'
repositories {
mavenCentral()
}
apply plugin: 'groovy'
apply plugin: 'com.bmuschko.nexus'
// Nexus deploy configuration
nexus {
sign = true
repositoryUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
snapshotRepositoryUrl = 'https://oss.sonatype.org/content/repositories/snapshots/'
}
extraArchive {
javadoc = true
sources = true
tests = true
}
modifyPom {
project {
name 'Rest Proxy Parent'
description 'Rest Proxy Parent'
url 'https://github.com/UW-Madison-DoIT/rest-proxy'
inceptionYear '2015'
scm {
url 'https://github.com/UW-Madison-DoIT/rest-proxy'
connection 'scm:https://github.com/UW-Madison-DoIT/rest-proxy.git'
developerConnection 'scm:git://github.com/UW-Madison-DoIT/rest-proxy.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 {
name 'My UW Dev Team'
email 'my-admin@lists.wisc.edu'
url 'https://github.com/UW-Madison-DoIT'
organization 'UW-Madison-DoIT'
}
}
// The nexus plugin overlooks provided dependencies
// so we override this bit to make sure they get in
def generatedDeps = dependencies
dependencies {
generatedDeps.each { dep ->
dependency {
groupId dep.groupId
artifactId dep.artifactId
version dep.version
scope dep.scope
}
}
project.configurations.provided.allDependencies.each { dep ->
dependency {
groupId dep.group
artifactId dep.name
version dep.version
scope 'provided'
}
}
}
}
}
// Define provided scope
configurations {
provided
compile.extendsFrom provided
}
}