This repository has been archived by the owner on Nov 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
build.gradle
90 lines (79 loc) · 2.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
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
apply plugin: 'java'
apply plugin: 'maven-publish'
group = 'com.amadornes'
version = '1.0.0'
sourceSets {
api
shared
gradlecomp
}
repositories {
jcenter()
mavenCentral()
}
configurations {
sharedImplementation.extendsFrom apiImplementation
gradlecompImplementation.extendsFrom sharedImplementation
compile.extendsFrom sharedImplementation
compile.extendsFrom gradlecompImplementation
}
dependencies {
sharedImplementation sourceSets.api.output
gradlecompImplementation sourceSets.shared.output
gradlecompImplementation gradleApi()
gradlecompImplementation 'com.google.guava:guava:26.0-jre'
gradlecompImplementation 'commons-io:commons-io:2.4'
compile sourceSets.api.output
compile sourceSets.shared.output
compile sourceSets.gradlecomp.output
}
jar {
from sourceSets.api.output
from sourceSets.shared.output
from sourceSets.gradlecomp.output
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
pom {
groupId = project.group
version = project.version
artifactId = project.archivesBaseName
name = project.archivesBaseName
packaging = 'jar'
description = 'A Gradle artifact processing and management tool'
url = 'https://github.com/amadornes/Artifactural/'
scm {
url = 'https://github.com/amadornes/Artifactural/'
connection = 'scm:git:git://github.com/amadornes/Artifactural.git'
developerConnection = 'scm:git:[email protected]:amadornes/Artifactural.git'
}
issueManagement {
system = 'github'
url = 'https://github.com/amadornes/Artifactural/issues'
}
licenses {
license {
name = 'LGPL-2.1'
url = 'https://www.gnu.org/licenses/lgpl-2.1.txt'
distribution = 'repo'
}
}
}
}
}
repositories {
maven {
if (project.hasProperty('mavenPassword')) {
credentials {
username = project.properties.mavenUser
password = project.properties.mavenPassword
}
url 'http://files.minecraftforge.net/maven/manage/upload'
} else {
url 'file://' + rootProject.file('repo').getAbsolutePath()
}
}
}
}