-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
82 lines (70 loc) · 2.15 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
repositories {
mavenCentral()
}
apply plugin: 'groovy'
apply plugin: 'maven-publish'
apply plugin: 'signing'
targetCompatibility='1.8'
sourceCompatibility='1.8'
group 'org.freeplane'
version='0.8'
dependencies {
implementation gradleApi()
implementation localGroovy()
}
task sourceJar(type: Jar, dependsOn: classes) {
archiveClassifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}
publishing {
publications {
maven(MavenPublication) {
artifactId 'gradle-freeplane-plugin'
artifact jar
artifact sourceJar
artifact javadocJar
pom {
name = project.name
description = 'Gradle Plugin for Freeplane Script and Add-on Development'
url = 'https://github.com/freeplane/gradle-plugin'
scm {
url = 'https://github.com/freeplane/gradle-plugin'
connection = 'scm:git:https://github.com/freeplane/gradle-plugin.git'
developerConnection = 'scm:git:[email protected]:freeplane/gradle-plugin.git'
}
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'dpolivaev'
name = 'Dimitry Polivaev'
email = '[email protected]'
}
}
}
}
}
repositories {
maven {
url = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'
credentials {
username project.findProperty('ossrhUsername') ?: '-'
password project.findProperty('ossrhPassword') ?: '-'
}
}
maven {
url = "${project.gradle.gradleUserHomeDir}/local-artifacts"
}
}
}
signing {
sign publishing.publications.maven
}