-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
114 lines (98 loc) · 3 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
plugins {
id 'idea'
id 'java-library'
id 'maven-publish'
id 'signing'
}
repositories {
mavenCentral()
}
version = "1.2"
dependencies {
annotationProcessor("org.jetbrains:annotations:24.1.0")
compileOnly("org.jetbrains:annotations:24.1.0")
annotationProcessor('org.projectlombok:lombok:1.18.34')
compileOnly("org.projectlombok:lombok:1.18.34")
api("org.apache.mina:mina-core:2.2.3")
}
idea {
module {
excludeDirs += file('gradle')
}
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
compileJava {
doLast {
jar {
manifest {
attributes('Implementation-Title': project.name,
'Implementation-Version': version,
'Built-Date': new Date().toString(),
'Built-By': System.getProperty('user.name'),
'Built-JDK': System.getProperty('java.version'),
'Source-Compatibility': project.sourceCompatibility,
'Target-Compatibility': project.targetCompatibility
)
}
}
}
}
java {
withSourcesJar()
withJavadocJar()
}
publishing {
publications {
maven(MavenPublication) {
groupId "host.anzo"
artifactId = "simon"
from components.java
pom {
name = "simon"
description = "Simple Invocation of Methods Over Network, a kind of RMI replacement"
url = "https://github.com/AN3Orik/simon"
licenses {
license {
name = 'GPL-3.0 license'
url = 'https://www.gnu.org/licenses/gpl-3.0.txt'
}
}
scm {
connection = 'scm:git:https://github.com/AN3Orik/simon.git'
developerConnection = 'scm:git:https://github.com/AN3Orik/simon.git'
url = 'https://github.com/AN3Orik/simon'
}
developers {
developer {
id = 'ACHR'
name = 'Alexander Christian'
email = '[email protected]'
}
developer {
id = 'ANZO'
name = 'Anton Lasevich'
email = '[email protected]'
}
}
}
}
}
repositories {
maven {
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username "$mavenCentralUsernameToken"
password "$mavenCentralPasswordToken"
}
}
}
}
signing {
def signingKey = "$mavenCentralSigningKey"
def signingPassword = "$mavenCentralSigningKeyPassword"
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications.maven
}