-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
110 lines (95 loc) · 2.56 KB
/
Copy pathbuild.gradle
File metadata and controls
110 lines (95 loc) · 2.56 KB
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
plugins {
id 'java-library'
id 'com.vanniktech.maven.publish' version '0.35.0'
id 'com.diffplug.spotless' version '8.0.0'
}
group = 'edu.apu.pssdk'
version = '3.0.1-SNAPSHOT'
apply from: "${rootDir}/repositories.gradle"
repositories {
mavenCentral()
giteaIntdevRepo(it)
}
mavenPublishing {
publishToMavenCentral()
signAllPublications()
coordinates(project.group, project.name, project.version)
pom {
name = project.name
description = 'Integrate with Peoplesoft Component Interfaces with Node.js and Python using GraalVM'
url = 'https://github.com/azusapacificuniversity/pssdk'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'enov'
name = 'Samuel Demirdjian'
url = 'https://github.com/enov'
}
developer {
id = 'megapixel99'
name = 'seth wheeler'
url = 'https://github.com/megapixel99'
}
}
scm {
url = 'https://github.com/azusapacificuniversity/pssdk'
connection = 'scm:git:git://github.com/azusapacificuniversity/pssdk.git'
developerConnection = 'scm:git:ssh://github.com/azusapacificuniversity/pssdk.git'
}
}
}
dependencies {
implementation 'org.graalvm.polyglot:polyglot:25.0.1'
implementation 'org.slf4j:slf4j-api:2.0.17'
compileOnly 'com.oracle.peoplesoft:psjoa:8.60.+'
}
// Apply a specific Java toolchain to ease working on different environments.
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
testing {
suites {
test {
useJUnitJupiter()
}
integrationTest(JvmTestSuite) {
dependencies {
implementation project()
}
targets {
all {
testTask.configure {
shouldRunAfter(test)
}
}
}
}
}
}
tasks.named("compileJava") {
dependsOn("spotlessApply")
}
tasks.named('check') {
dependsOn(testing.suites.integrationTest)
}
spotless {
java {
googleJavaFormat()
}
}
jar {
manifest {
attributes(
'Implementation-Title': project.group + ':' + project.name,
'Implementation-Version': project.version
)
}
}