This repository has been archived by the owner on Aug 13, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
68 lines (58 loc) · 1.65 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
buildscript {
repositories {
jcenter()
}
}
plugins {
id 'com.jfrog.artifactory' version '3.0.1'
}
apply plugin: 'com.jfrog.artifactory'
apply plugin: 'groovy'
apply plugin: 'maven-publish'
group = 'io.vokal.gradle'
version = '1.0.1'
sourceCompatibility = 1.6
targetCompatibility = 1.6
repositories {
jcenter()
}
dependencies {
compile gradleApi()
compile localGroovy()
compile 'com.android.tools.build:gradle:2.1.2'
compile 'org.apache.pdfbox:pdfbox:2.0.0'
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifactory {
contextUrl = "${artifactory_contextUrl}" //The base Artifactory URL if not overridden by the publisher/resolver
publish {
repository {
repoKey = 'plugins-release-local'
username = "${artifactory_user}"
password = "${artifactory_password}"
}
defaults {
//This closure defines defaults for all 'artifactoryPublish' tasks of all projects the plugin is applied to
publications ('mavenJava') //Optional list of publications (names or objects) to publish.
publishBuildInfo = true //Publish build-info to Artifactory (true by default)
publishArtifacts = true //Publish artifacts to Artifactory (true by default)
}
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifactId "resgen"
artifact sourcesJar
artifact javadocJar
}
}
}