-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
102 lines (89 loc) · 2.91 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
buildscript {
repositories {
//jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.gradle.publish:plugin-publish-plugin:0.9.9"
}
}
plugins {
id 'net.researchgate.release' version '2.4.0'
}
apply plugin: "java"
apply plugin: 'maven'
apply plugin: 'maven-publish'
//apply plugin: 'com.jfrog.bintray'
apply plugin: "com.gradle.plugin-publish"
group 'com.dimafeng'
repositories {
jcenter()
}
dependencies {
compile(gradleApi())
apply plugin: 'announce'
compile("org.testcontainers:testcontainers:$testcontainersVersion") {
exclude group: 'junit'
}
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from 'build/docs/javadoc'
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
artifacts {
archives sourcesJar, javadocJar
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
}
}
}
//bintray {
// user = project.hasProperty('bintrayUser') ? project.bintrayUser : System.getenv('BINTRAY_USER')
// key = project.hasProperty('bintrayKey') ? project.bintrayKey : System.getenv('BINTRAY_KEY')
// publications = ['mavenJava']
// pkg {
// repo = 'com.dimafeng'
// userOrg = 'dimafeng'
// name = 'containerized-tasks'
// licenses = ['MIT']
// websiteUrl = 'https://github.com/dimafeng/containerized-tasks'
// issueTrackerUrl = 'https://github.com/dimafeng/containerized-tasks/issues'
// vcsUrl = 'https://github.com/dimafeng/containerized-tasks.git'
// labels = ['gradle', 'docker', 'npm', 'gulp', 'grunt']
// version {
// name = project.version
// released = new Date()
// vcsTag = project.version
//// mavenCentralSync {
//// sync = false //Optional (true by default). Determines whether to sync the version to Maven Central.
//// user = 'userToken' //OSS user token
//// password = 'paasword' //OSS user password
//// close = '1' //Optional property. By default the staging repository is closed and artifacts are released to Maven Central. You can optionally turn this behaviour off (by puting 0 as value) and release the version manually.
//// }
// }
// }
//}
pluginBundle {
website = 'https://github.com/dimafeng/containerized-tasks'
vcsUrl = 'https://github.com/dimafeng/containerized-tasks'
description = 'Gradle plugin that allows launching tasks inside docker containers'
tags = ['docker', 'npm', 'grunt', 'gulp', 'webpack']
plugins {
greetingsPlugin {
id = 'com.dimafeng.containerizedTask'
displayName = 'Containerized Task'
}
}
}
afterReleaseBuild.dependsOn publishPlugins