-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
91 lines (84 loc) · 2.93 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
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
compileJava.options.encoding('UTF-8')
withJavadocJar()
withSourcesJar()
}
group = 'io.github.amayaframework'
archivesBaseName = 'amaya-sun'
version = System.getenv('RELEASE_VERSION') ?: '1.0.0'
repositories {
mavenCentral()
}
dependencies {
api group: 'org.atteo.classindex', name: 'classindex', version: '3.11'
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.36'
implementation group: 'io.github.amayaframework', name: 'http-server', version: '1.1.1'
api group: 'io.github.amayaframework', name: 'amaya-core', version: '1.2.3'
}
jar {
from sourceSets.main.output
from sourceSets.main.allJava
}
signing {
sign publishing.publications
}
publishing {
publications {
mavenJava(MavenPublication) {
// Specify artifacts
groupId = group
artifactId = archivesBaseName
version = version
from components.java
// Configure pom
pom {
name.set(archivesBaseName)
description.set('Amaya is a fairly lightweight web framework for Java, which guarantees speed, ' +
'ease of creating plugins/addons, flexibility and ease of use. Sun server implementation.')
url.set('https://github.com/AmayaFramework/amaya-sun')
organization {
name.set('io.github.amayaframework')
url.set('https://github.com/AmayaFramework')
}
issueManagement {
system.set('GitHub')
url.set('https://github.com/AmayaFramework/amaya-sun/issues')
}
licenses {
license {
name.set('GNU General Public License v3.0')
url.set('https://github.com/AmayaFramework/amaya-sun/blob/main/LICENSE')
}
}
scm {
url.set('https://github.com/AmayaFramework/amaya-sun')
connection.set('scm:https://github.com/AmayaFramework/amaya-sun.git')
developerConnection.set('scm:https://github.com/AmayaFramework/amaya-sun.git')
}
developers {
developer {
id.set('RomanQed')
name.set('Roman Bakaldin')
email.set('[email protected]')
}
}
}
}
}
repositories {
maven {
url "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2"
credentials {
username System.getenv('SONATYPE_USERNAME')
password System.getenv('SONATYPE_PASSWORD')
}
}
}
}