This repository has been archived by the owner on Jan 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
115 lines (95 loc) · 3.08 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
115
plugins {
id 'org.jetbrains.kotlin.jvm' version "1.6.10"
id 'maven-publish'
id 'signing'
id 'io.github.gradle-nexus.publish-plugin' version '1.1.0'
}
group = "com.mattworzala"
archivesBaseName = "canvas"
version = "1.1.5"
allprojects {
apply plugin: 'java'
apply plugin: 'org.jetbrains.kotlin.jvm'
repositories {
mavenCentral()
maven { url = 'https://jitpack.io' }
maven { url = 'https://jcenter.bintray.com/' }
maven { url = 'https://repo.spongepowered.org/maven' }
maven { url = 'https://libraries.minecraft.net' }
maven { url = 'https://repo.velocitypowered.com/snapshots/' }
}
dependencies {
compileOnly 'com.github.Minestom:Minestom:7867313290'
}
sourceCompatibility = '17'
targetCompatibility = '17'
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile) {
kotlinOptions.jvmTarget = "17"
kotlinOptions.freeCompilerArgs = ["-Xinline-classes"]
}
}
nexusPublishing {
repositories {
sonatype {
nexusUrl = uri("https://s01.oss.sonatype.org/service/local/")
snapshotRepositoryUrl = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
username = System.getenv("sonatypeUsername") ?: hasProperty("sonatypeUsername") ? sonatypeUsername : ''
password = System.getenv("sonatypePassword") ?: hasProperty("sonatypePassword") ? sonatypePassword : ''
}
}
}
repositories {
}
dependencies {
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
artifacts {
archives sourcesJar, javadocJar
}
publishing {
publications {
release(MavenPublication) {
from project.components.java
artifact javadocJar
artifact sourcesJar
pom {
name = 'canvas'
description = 'An inventory framework for the Minestom server software'
url = 'https://github.com/mworzala/canvas'
licenses {
license {
name = 'MIT License'
url = 'https://github.com/mworzala/canvas/blob/master/LICENSE'
}
}
scm {
connection = 'scm:git:github.com/mworzala/canvas.git'
developerConnection = 'scm:git:ssh://github.com/mworzala/canvas.git'
url = 'https://github.com/mworzala/canvas/tree/main'
}
developers {
developer {
id = 'mworzala'
name = 'Matt Worzala'
email = '[email protected]'
}
}
}
}
}
}
signing {
if (System.env['CI'] != null) {
def signingKey = System.env['SIGNING_KEY']
def signingPassword = System.env['SIGNING_PASSWORD']
useInMemoryPgpKeys(signingKey, signingPassword)
}
sign publishing.publications
}