forked from jbaruch/maven2gradle
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
45 lines (36 loc) · 1.08 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
apply plugin: 'groovy'
apply plugin: 'maven'
apply plugin: 'idea'
group = 'org.gradle.tools'
version = '1.0-SNAPSHOT'
sourceCompatibility = 1.6
targetCompatibility = 1.6
repositories {
org.apache.ivy.util.url.CredentialsStore.INSTANCE.addCredentials("REALM", "HOST", "USER", "PASSWORD");
mavenRepo urls: ["http://repo.jfrog.org/artifactory/libs-releases"]
mavenRepo urls: ["http://repo.jfrog.org/artifactory/libs-snapshots"]
}
configurations {
deployerJars
}
task sourcesJar(type: Jar, dependsOn: compileGroovy) {
from sourceSets.main.allSource
classifier = 'sources'
}
artifacts {
archives sourcesJar
}
dependencies {
groovy localGroovy()
compile group: 'org.apache.ant', name: 'ant', version: '1.8.1'
deployerJars group: 'org.apache.maven.wagon', name: 'wagon-ssh', version: '1.0-beta-2'
}
uploadArchives {
repositories.mavenDeployer {
configuration = configurations.deployerJars
pom.artifactId = 'maven2gradle'
snapshotRepository(url: "http://repo.jfrog.org/artifactory/gradle-snapshots-local") {
authentication(userName: USER, password: PASSWORD)
}
}
}