-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
executable file
·76 lines (68 loc) · 1.71 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
plugins {
id "com.gradle.plugin-publish" version "0.10.1"
id 'maven-publish'
id 'java-gradle-plugin'
id 'java'
}
group 'hu.gdulai'
version '1.0.2'
sourceCompatibility = '11'
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
implementation gradleApi()
implementation group: 'org.apache.maven.shared', name: 'maven-invoker', version: '3.0.1'
implementation group: 'org.eclipse.jgit', name: 'org.eclipse.jgit', version: '5.6.0.201912101111-r'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.6.2'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.6.2'
testImplementation group: 'org.assertj', name: 'assertj-core', version: '3.16.1'
}
def pluginId = 'hu.gdulai.gitpublish'
def implClass = 'hu.gdulai.gitpublish.GitPublishPlugin'
def url = 'https://github.com/gdulai/gitpublish'
/*
gradlePlugin {
plugins {
gitPublishPlugin {
id = pluginId
implementationClass = implClass
}
}
}
*/
publishing {
publications {
maven(MavenPublication) {
groupId "$group"
artifactId pluginId
version "$version"
from components.java
}
}
}
uploadArchives {
repositories {
mavenLocal()
}
}
gradlePlugin {
plugins {
gitPublishPlugin {
id = pluginId
implementationClass = implClass
displayName = 'Git Publish'
description = 'Publish git repositories to maven local'
}
}
}
pluginBundle {
plugins {
gitPublishPlugin {
tags = ['gitpublish']
website = url
vcsUrl = url
}
}
}