-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
93 lines (83 loc) 路 2.35 KB
/
Copy pathbuild.gradle
File metadata and controls
93 lines (83 loc) 路 2.35 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
plugins {
id 'java'
id 'signing'
id 'maven-publish'
id 'org.jetbrains.dokka' version '2.0.0'
id 'org.jetbrains.kotlin.jvm'
}
group = 'com.butter.mas'
version = '2.0'
repositories {
mavenCentral()
}
configurations {
dokka
}
dependencies {
dokka "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
implementation 'com.google.code.gson:gson:2.10.1'
implementation 'org.jetbrains:annotations:24.1.0'
testImplementation platform('org.junit:junit-bom:5.9.1')
testImplementation 'org.junit.jupiter:junit-jupiter'
}
test {
useJUnitPlatform()
}
java {
withJavadocJar()
withSourcesJar()
}
kotlin {
jvmToolchain(17)
}
javadoc {
options.addBooleanOption('html5', true)
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'mas-api'
from components.java
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
pom {
name = 'Butter MAS Java API'
description = 'Java API for Butter Robotics MAS platform'
url = 'http://www.butterrobotics.com/'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'bennymeg'
name = 'Benny Megidish'
email = 'butter.robotics@gmail.com'
}
}
scm {
url = 'https://github.com/butter-robotics/Butter.MAS.Java.API'
connection = 'scm:git:git://github.com/butter-robotics/Butter.MAS.Java.API.git'
}
}
}
}
repositories {
maven {
def releasesRepoUrl = layout.buildDirectory.dir('repos/releases')
def snapshotsRepoUrl = layout.buildDirectory.dir('repos/snapshots')
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
}
}
}
//signing {
// sign publishing.publications.mavenJava
//}