This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
100 lines (83 loc) · 2.44 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
buildscript {
ext {
slf4j_version = '2.0.0-alpha1'
commons_io_version = '2.8.0'
commons_text_version = '1.9'
send_notification_version = '0.16.0'
jna_version = '5.8.0'
hikari_version = '4.0.3'
h2_version = '1.4.200'
mysql_connector_java_version = '8.0.23'
sqlite_jdbc_version = '3.34.0'
jsoup_version = '1.13.1'
unirest_version = '3.11.11'
httpcore_nio_version = '4.4.14'
jackson_version = '2.12.2'
jakarta_mail_version = '2.0.0'
}
}
plugins {
id 'com.github.ben-manes.versions' version '0.38.0'
id 'com.novoda.build-properties' version '0.4.1'
id 'io.freefair.lombok' version '5.3.0' apply false
id "org.javamodularity.moduleplugin" version "1.7.0" apply false
id "com.github.breadmoirai.github-release" version '2.2.12'
}
buildProperties {
secrets {
using(file('secrets.properties')).or(System.getenv()).or([
"GITHUB_USER" : "N/A",
"GITHUB_TOKEN": "N/A"
])
}
}
description = 'RakSrinaNa Utils'
subprojects {
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'io.freefair.lombok'
apply plugin: 'org.javamodularity.moduleplugin'
repositories {
jcenter()
mavenCentral()
}
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_15
dependencies {
api("org.slf4j:slf4j-api:${slf4j_version}")
}
processResources {
expand project.properties
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
options.deprecation = true
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/RakSrinaNa/JavaUtils")
credentials {
username = buildProperties.secrets['GITHUB_USER'].string
password = buildProperties.secrets['GITHUB_TOKEN'].string
}
}
}
publications {
gpr(MavenPublication) {
from(components.java)
}
}
}
}
githubRelease {
owner = "RakSrinaNa"
repo = "JavaUtils"
token = buildProperties.secrets['GITHUB_TOKEN'].string
tagName = "v${project.version}"
releaseName = "${project.version}"
}
tasks.withType(Wrapper) {
gradleVersion = project.wrapper_version
}