forked from CadixDev/gitpatcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
55 lines (45 loc) · 1.14 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
plugins {
id 'java-gradle-plugin'
id 'groovy'
id 'maven-publish'
id 'org.cadixdev.licenser' version '0.6.1'
}
group = 'cn.maxpixel.gradle'
version = '0.10.0.ALPHA1'
description = 'A Gradle plugin to manage patches for Git repositories'
java.toolchain.languageVersion = JavaLanguageVersion.of(8)
dependencies {
implementation gradleApi()
}
license {
include '**/*.java'
include '**/*.groovy'
}
task sourceJar(type: Jar) {
archiveClassifier = 'sources'
from sourceSets.main.allSource
}
task groovydocJar(type: Jar, dependsOn: groovydoc) {
archiveClassifier = 'groovydoc'
from groovydoc.destinationDir
}
gradlePlugin {
plugins {
gitpatcher {
id = 'cn.maxpixel.gitpatcher'
implementationClass = 'org.cadixdev.gradle.gitpatcher.GitPatcher'
}
}
}
publishing {
repositories {
maven {
name = 'github'
url = 'https://maven.pkg.github.com/MaxPixelStudios/gitpatcher'
credentials {
username = System.getenv('GPR_USERNAME')
password = System.getenv('GPR_TOKEN')
}
}
}
}