-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
73 lines (69 loc) · 2.58 KB
/
build.gradle
File metadata and controls
73 lines (69 loc) · 2.58 KB
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
plugins {
id 'java'
id 'maven-publish'
}
group = 'hu.czsoft'
version = rootProject.version
repositories {
mavenCentral()
maven {
name = 'czsoft'
url = "${rootProject.mavenUrl}releases"
}
}
dependencies {
testImplementation platform("org.junit:junit-bom:${rootProject.junitVersion}")
testImplementation "org.junit.jupiter:junit-jupiter:${rootProject.junitVersion}"
testRuntimeOnly "org.junit.platform:junit-platform-launcher:${rootProject.junitPlatformVersion}"
compileOnly "org.projectlombok:lombok:${rootProject.lombokVersion}"
annotationProcessor "org.projectlombok:lombok:${rootProject.lombokVersion}"
implementation "com.google.code.gson:gson:${rootProject.gsonVersion}"
}
publishing {
repositories {
maven {
name = 'czsoft'
url = rootProject.mavenUrl + (!rootProject.version.endsWith('SNAPSHOT') ? "releases" : "snapshots")
credentials(PasswordCredentials)
authentication {
basic(BasicAuthentication)
}
}
}
publications {
mavenJava(MavenPublication) {
artifactId = rootProject.artifactId
from components.java
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
pom {
name = rootProject.name
description = "An SDK to easily communicate with your Gree appliances, written in Java. Originally separated from GreeControlAndroid, and then got a full rewrite."
url = "https://docs.czsoft.hu/en/java/greesdk?v=" + rootProject.version
developers {
developer {
id = "czompi"
name = "Dávid Czompó"
email = "czompi@czompi.eu"
}
developer {
id = "czompisoftware"
name = "Czompi Software"
email = "developer@czsoft.hu"
}
}
scm {
connection = "scm:git:git://github.com/CzompiSoftware/" + rootProject.artifactId + ".Java.git"
developerConnection = "scm:git:ssh://github.com/CzompiSoftware/" + rootProject.artifactId + ".Java.git"
url = "https://github.com/CzompiSoftware/" + rootProject.artifactId + ".Java"
}
}
}
}
}