-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
50 lines (43 loc) · 1.29 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
plugins {
id 'java-gradle-plugin'
id 'groovy'
id 'com.gradle.plugin-publish' version '0.12.0'
id 'maven-publish'
}
group = 'com.jarnoharno'
version = '1.1.2'
sourceCompatibility = 1.8
repositories {
jcenter()
}
dependencies {
implementation localGroovy()
implementation group: 'org.yaml', name: 'snakeyaml', version: '1.26'
}
pluginBundle {
website = 'https://github.com/jarnoharno/gradle-github-packages-plugin'
vcsUrl = 'https://github.com/jarnoharno/gradle-github-packages-plugin.git'
tags = ['repository', 'github', 'github-packages', 'dependency', 'publishing', 'maven']
}
gradlePlugin {
plugins {
githubPackages {
id = 'com.jarnoharno.github-packages'
displayName = 'Plugin for Github Packages'
description = 'Use Github Packages repositories with credentials from your gh or hub config'
implementationClass = 'com.jarnoharno.gradle.GithubPackagesPlugin'
}
}
}
publishing {
repositories {
maven {
name = 'GithubPackages'
url = uri('https://maven.pkg.github.com/jarnoharno/packages')
credentials {
username = project.findProperty('gpr.user')
password = project.findProperty('gpr.key')
}
}
}
}