forked from jbaruch/maven2gradle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
49 lines (40 loc) · 1.12 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
buildscript {
repositories {
mavenRepo urls: 'http://gradle.artifactoryonline.com/gradle/plugins'
}
dependencies {
classpath "org.gradle.plugins:gradle-idea-plugin:0.2"
}
}
apply plugin: 'groovy'
apply plugin: 'maven'
apply plugin: 'org.gradle.idea'
group = 'org.gradle.tools'
version = '1.0-SNAPSHOT'
repositories {
mavenRepo urls: ["https://www.alphacsp.net/artifactory/libs-releases"]
mavenRepo urls: ["https://www.alphacsp.net/artifactory/libs-snapshots"]
}
configurations {
deployerJars
}
task sourcesJar(type: Jar, dependsOn: compileGroovy) {
from sourceSets.main.allSource
classifier = 'sources'
}
artifacts {
archives sourcesJar
}
dependencies {
groovy group: 'org.codehaus.groovy', name: 'groovy', version: '1.7.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: "https://www.alphacsp.net/artifactory/libs-snapshots-local") {
authentication(userName: "baruchs", password: '')
}
}
}