-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
85 lines (70 loc) · 2.51 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
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'idea'
apply plugin: 'eclipse'
group = 'org.gradle.plugins'
version = '1.0-SNAPSHOT'
sourceCompatibility = 1.5
targetCompatibility = 1.5
ideaModule {
excludeDirs += file('buildSrc/build')
excludeDirs += file('buildSrc/.gradle')
}
ideaProject {
javaVersion = '1.6'
}
configurations {
deployerJars
all*.exclude module: 'google-collections' //we use guava instead
}
task sourcesJar(type: Jar, dependsOn: compileJava) {
from sourceSets.main.allSource
classifier = 'sources'
}
artifacts {
archives sourcesJar
}
//If USER and PASSWORD are set on the project model via the CLI, set up an archive upload destination
// Command line specification would look like: gradle -PUSER=matthew -PPASSWORD=foobar
if (project.metaClass.hasProperty(project, "USER")) {
println "Setting up the upload (destination) repository for this plugin"
uploadArchives {
repositories.mavenDeployer {
configuration = configurations.deployerJars
pom.artifactId = 'gradle-m2metadata-plugin'
snapshotRepository(url: "http://repo.jfrog.org/artifactory/gradle-snapshots-local") {
authentication(userName: USER, password: PASSWORD)
}
}
}
}
repositories {
mavenCentral()
}
dependencies {
//Maven
compile "org.apache.maven:maven-core:3.0-beta-1"
compile "org.apache.maven:maven-model:3.0-beta-1"
compile "org.apache.maven:maven-artifact:3.0-beta-1"
compile "org.apache.maven:maven-model-builder:3.0-beta-1"
compile "org.apache.maven:maven-compat:3.0-beta-1"
compile "org.codehaus.plexus:plexus-container-default:1.5.5"
compile "org.codehaus.plexus:plexus-classworlds:2.2.3"
//Maven plugins
compile "org.apache.maven.plugins:maven-clean-plugin:2.4.1"
//Maven wagons
compile "org.apache.maven.wagon:wagon-http:1.0-beta-6"
compile "org.apache.maven.wagon:wagon-ssh:1.0-beta-6"
compile "org.apache.maven.wagon:wagon-ssh-external:1.0-beta-6"
compile "org.apache.maven.wagon:wagon-file:1.0-beta-6"
compile "org.apache.maven.wagon:wagon-webdav-jackrabbit:1.0-beta-6"
compile "org.apache.maven.wagon:wagon-http-lightweight:1.0-beta-6"
//Utils
compile "com.google.guava:guava:r07"
//Gradle Core APIs with a specific exclusion of maven-ant-tasks because it (older)
// provides DefaultPlexusContainer and conflicts with org.codehaus.plexus:plexus-container-default (newer)
compile gradleApi().source.filter { !it.name.startsWith("maven-ant-tasks") }
}
task wrapper(type: Wrapper) {
gradleVersion = '1.0-milestone-4-20110508123756+0200'
}