-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
121 lines (107 loc) · 3.48 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
/*
* Copyright (c) 2021 SailPoint Technologies, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
}
version = '0.3.0-SNAPSHOT'
repositories {
mavenCentral()
maven {
url "https://s01.oss.sonatype.org/content/repositories/releases/"
}
maven {
url "https://s01.oss.sonatype.org/content/repositories/snapshots/"
}
flatDir {
dirs 'libs'
}
}
dependencies {
// Nimbus JOSE JWT
// https://mvnrepository.com/artifact/com.nimbusds/nimbus-jose-jwt
api group: 'com.nimbusds', name: 'nimbus-jose-jwt', version: '9.16-preview.1'
implementation group: 'com.sailpoint', name: 'ietf-subject-identifiers-model', version: '0.2.0-SNAPSHOT'
//implementation files("../ietf-subject-identifiers-model/build/libs/ietf-subject-identifiers-model-0.2.0-SNAPSHOT.jar")
// Use JUnit test framework
testImplementation 'junit:junit:4.13.2'
}
allprojects {
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
}
java {
modularity.inferModulePath = true
withJavadocJar()
withSourcesJar()
}
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
publishing {
publications {
model(MavenPublication) {
from components.java
pom {
name = 'openid-sse-model'
description = 'OpenID Shared Signals and Events models'
url = 'http://github.com/sailpoint-oss/openid-sse-model'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'adam-hampton-sp'
name = 'Adam Hampton'
email = '[email protected]'
}
developer {
id = 'matt-domsch-sp'
name = 'Matt Domsch'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:git://github.com/sailpoint-oss/openid-sse-model.git'
developerConnection = 'scm:git:ssh://github.com/sailpoint-oss/openid-sse-model.git'
url = 'https://github.com/sailpoint-oss/openid-sse-model/'
}
}
}
}
repositories {
maven {
name = 'myRepo'
url = "file://${buildDir}/repo"
}
maven {
def releaseRepo = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
def snapshotRepo = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
url = isReleaseVersion ? releaseRepo : snapshotRepo
credentials {
username = project.hasProperty('ossrhUsername') ? ossrhUsername : "Unknown user"
password = project.hasProperty('ossrhPassword') ? ossrhPassword : "Unknown password"
}
}
}
}
javadoc {
if (JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}
signing {
useGpgCmd()
sign publishing.publications.model
}
group = 'com.sailpoint'
sourceCompatibility = 9;
targetCompatibility = 9;