-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
101 lines (92 loc) · 3.23 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
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
id 'com.github.johnrengelman.shadow' version '8.1.1'
id 'com.palantir.git-version' version '3.0.0'
}
group = 'nl.cwts'
version = gitVersion()
repositories {
mavenCentral()
}
dependencies {
implementation group: 'com.microsoft.sqlserver', name: 'mssql-jdbc', version: '12.2.0.jre8'
implementation group: 'com.theokanning.openai-gpt3-java', name: 'service', version: '0.18.1'
implementation group: 'org.json', name: 'json', version: '20231013'
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
withJavadocJar()
withSourcesJar()
}
jar {
manifest {
attributes('Implementation-Title': project.name,
'Implementation-Version': project.version,
'Main-Class': 'nl.cwts.publicationclassificationlabeling.run.PublicationClassificationLabelingCreator')
}
}
assemble.dependsOn shadowJar
shadowJar {
archiveBaseName.set(project.name)
archiveClassifier.set('')
archiveVersion.set(project.version)
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = "https://maven.pkg.github.com/CWTSLeiden/publicationclassificationlabeling"
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
maven {
name = "OSSRH"
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = System.getenv("OSSRH_USERNAME")
password = System.getenv("OSSRH_PASSWORD")
}
}
}
publications {
mavenJava(MavenPublication) {
from components.java
pom {
name = "publicationclassificationlabeling"
description = "Java package for obtaining labels for clusters of scientific publications."
url = "https://github.com/CWTSLeiden/publicationclassificationlabeling"
licenses {
license {
name = "MIT License"
url = "http://www.opensource.org/licenses/mit-license.php"
}
}
developers {
developer {
name = "Nees Jan van Eck"
email = "[email protected]"
url = "https://github.com/neesjanvaneck"
id = "neesjanvaneck"
}
}
scm {
connection = "scm:[email protected]:CWTSLeiden/publicationclassificationlabeling.git"
developerConnection = "scm:[email protected]:CWTSLeiden/publicationclassificationlabeling.git"
url = "https://github.com/CWTSLeiden/publicationclassificationlabeling"
}
}
}
}
}
signing {
required { gradle.taskGraph.hasTask("publish") }
def signingKey = System.getenv("GPG_SIGNING_KEY")
def signingPassword = System.getenv("GPG_SIGNING_PASSWORD")
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications.mavenJava
}