-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
74 lines (68 loc) · 2.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
plugins {
id 'java-library'
id 'maven-publish'
id 'org.jetbrains.kotlin.jvm' version '1.4.31'
}
group 'ca.jahed.rtpoet'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib"
testCompile group: 'junit', name: 'junit', version: '4.12'
}
java {
withJavadocJar()
withSourcesJar()
}
publishing {
repositories {
mavenLocal()
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/qumase/rtpoet")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("GH_USER")
password = project.findProperty("gpr.key") ?: System.getenv("GH_TOKEN")
}
}
}
publications {
mvn(MavenPublication) {
from components.java
artifactId = rootProject.name
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
pom {
name = 'RTPoet'
description = 'POJO representation for UML-RT models'
url = 'https://github.com/qumase/rtpoet'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'kjahed'
name = 'Karim Jahed'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:git://github.com/qumase/rtpoet.git'
developerConnection = 'scm:git:ssh://github.com/qumase/rtpoet.git'
url = 'https://github.com/qumase/rtpoet/'
}
}
}
}
}