-
Notifications
You must be signed in to change notification settings - Fork 31
/
build.gradle
129 lines (117 loc) · 2.75 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
129
/*
* Gradle build script.
*/
plugins {
id 'java'
id 'maven-publish'
}
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
group = 'org.bsworks.catalina.authenticator.oidc'
version = '2.5.0'
task jar(type: Jar, overwrite: true) {}
jar.enabled = false
javadoc.enabled = false
sourceSets {
mainTomcat85 {
java {
srcDirs = ['src/common/java', 'src/tomcat85/java']
}
}
mainTomcat90 {
java {
srcDirs = ['src/common/java', 'src/tomcat90/java']
}
}
}
task compileJava(type: JavaCompile, overwrite: true) {
dependsOn compileMainTomcat85Java, compileMainTomcat90Java
}
ext.sharedManifest = manifest {
attributes(
'Implementation-Title': project.name,
'Implementation-Version': project.version,
'Implementation-Vendor': 'Boyle Software, Inc.'
)
}
task mainTomcat85Jar(type: Jar) {
classifier 'tomcat85'
from sourceSets.mainTomcat85.output
manifest = project.manifest {
from sharedManifest
}
}
task mainTomcat90Jar(type: Jar) {
classifier 'tomcat90'
from sourceSets.mainTomcat90.output
manifest = project.manifest {
from sharedManifest
}
}
repositories {
mavenCentral()
}
dependencies {
mainTomcat85Implementation(
'org.apache.tomcat:tomcat-catalina:[8.5.50,8.6.0)',
'org.apache.tomcat:tomcat-juli:[8.5.50,8.6.0)',
'org.apache.tomcat:tomcat-util:[8.5.50,8.6.0)'
)
mainTomcat90Implementation(
'org.apache.tomcat:tomcat-catalina:[9.0.30,9.1.0)',
'org.apache.tomcat:tomcat-juli:[9.0.30,9.1.0)',
'org.apache.tomcat:tomcat-util:[9.0.30,9.1.0)'
)
}
artifacts {
archives(
mainTomcat85Jar,
mainTomcat90Jar
)
}
publishing {
publications {
mavenJava(MavenPublication) {
pom {
name = 'OpenID Connect Authenticator'
description = 'Apache Tomcat authenticator implementation that extends the standard form-based authenticator and adds OpenID Connect functionality.'
url = 'https://github.com/boylesoftware/tomcat-oidcauth'
inceptionYear = '2015'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
organization {
name = 'Boyle Software, Inc.'
url = 'https://www.boylesoftware.com/'
}
developers {
developer {
id = 'levahim'
name = 'Lev Himmelfarb'
email = '[email protected]'
timezone = 'America/New_York'
}
}
scm {
connection = 'scm:git:https://github.com/boylesoftware/tomcat-oidcauth.git'
developerConnection = 'scm:git:[email protected]:boylesoftware/tomcat-oidcauth.git'
}
issueManagement {
system = 'GitHub'
url = 'https://github.com/boylesoftware/tomcat-oidcauth/issues'
}
}
artifact mainTomcat85Jar
artifact mainTomcat90Jar
}
}
repositories {
maven {
name = 'local'
url = "file://${buildDir}/repo"
}
}
}