-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
65 lines (53 loc) · 1.57 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
plugins {
id 'java-library'
id 'eclipse'
id 'com.diffplug.spotless' version '6.20.0'
id 'maven-publish'
}
println "Stonks2 - Version ${rootProject.stonks_version}"
subprojects {
apply plugin: 'java-library'
apply plugin: 'eclipse'
apply plugin: 'com.diffplug.spotless'
apply plugin: 'maven-publish'
eclipse {
project.name = "Stonks2 - ${Character.toUpperCase(project.name.charAt(0))}${project.name.substring(1)}"
}
version = rootProject.stonks_version
group = rootProject.maven_group
base {
archivesName = "stonks-${project.name}"
}
repositories {
mavenCentral()
maven { url = 'https://jitpack.io/' }
}
dependencies.ext.naharaToolkit = { moduleName ->
return "com.github.nahkd123.nahara-toolkit:${moduleName}:$rootProject.nahara_toolkit_version"
}
java {
withSourcesJar()
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
spotless {
java {
eclipse().configFile("${rootProject.projectDir}/stonks2-eclipse-formatter.xml")
licenseHeaderFile("${rootProject.projectDir}/HEADER").updateYearWithLatest(true)
}
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId = rootProject.maven_group
artifactId = "stonks-${project.name}"
version = "${rootProject.stonks_version}"
from components.java
}
}
repositories {
mavenLocal()
}
}
}