-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.gradle
More file actions
68 lines (52 loc) · 1.47 KB
/
build.gradle
File metadata and controls
68 lines (52 loc) · 1.47 KB
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
plugins
{
id 'java-gradle-plugin'
id 'groovy'
id 'maven-publish'
id 'com.gradle.plugin-publish' version '1.2.1'
}
group = 'org.myire'
version = '3.3'
repositories
{
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
}
// Load external dependencies
apply from: 'dependencies.gradle'
// Load plugin descriptors
apply from: 'pluginspecs.gradle'
// Load the configuration of the pom file to generate
apply from: 'pomspec.gradle'
// Set the location of the generated pom file
generatePomFileForQuillPublication.destination =
"$buildDir/poms/${project.archivesBaseName}-${project.version}.pom"
ext.sourceAndTargetCompatibility = JavaVersion.VERSION_1_8
tasks.withType(GroovyCompile).configureEach
{
sourceCompatibility = sourceAndTargetCompatibility
targetCompatibility = sourceAndTargetCompatibility
}
tasks.withType(JavaCompile).configureEach
{
sourceCompatibility = sourceAndTargetCompatibility
targetCompatibility = sourceAndTargetCompatibility
}
tasks.register('sourcesJar', Jar)
{
archiveClassifier = 'sources'
from sourceSets.main.allSource
}
tasks.register('groovydocJar', Jar)
{
archiveClassifier = 'groovydoc'
from groovydoc.destinationDir
}
tasks.register('javadocJar', Jar)
{
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}
groovydocJar.dependsOn 'groovydoc'
javadocJar.dependsOn 'javadoc'
build.finalizedBy 'sourcesJar', 'groovydocJar', 'javadocJar', 'generatePomFileForQuillPublication'