-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
executable file
·110 lines (97 loc) · 2.72 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
buildscript {
repositories {
mavenCentral()
}
}
//Community Plugins
plugins {
id("com.diffplug.spotless") version "5.6.1"
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'maven-publish'
apply plugin: 'signing'
java {
withJavadocJar()
withSourcesJar()
}
version = '1.0.3'
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'facade-schema'
groupId = 'io.github.sasanlabs'
version = '1.0.3'
from components.java
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
pom {
name = 'facade-schema'
url = 'https://github.com/SasanLabs/facade-schema'
description = 'Schema to fulfill the VulnerableApp-facade contract'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = '[email protected]'
name = 'Karan Preet Singh Sasan'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:git://github.com/SasanLabs/facade-schema.git'
developerConnection = 'scm:git:git://github.com/SasanLabs/facade-schema.git'
url = 'https://github.com/SasanLabs/facade-schema'
}
}
}
}
repositories {
maven {
url = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'
credentials {
username "${ossrhUsername}"
password "${ossrhPassword}"
}
}
}
}
signing {
sign publishing.publications.mavenJava
}
javadoc {
if(JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}
repositories {
mavenCentral()
gradlePluginPortal()
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
spotless {
java {
// Don't enforce the license, just the format.
clearSteps()
googleJavaFormat().aosp()
}
}
dependencies {
// https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-annotations
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.12.4'
}
test {
useJUnitPlatform()
}