forked from LeonardoCardoso/Android-Link-Preview
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
60 lines (50 loc) · 1.34 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
mavenCentral()
maven { url 'https://github.com/leonardocardoso/mvn-repo/raw/master/maven-deploy' }
jcenter()
}
dependencies {
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
group = 'org.broadbear'
version = '1.2'
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'maven'
allprojects {
repositories {
mavenCentral()
maven { url 'https://github.com/leonardocardoso/mvn-repo/raw/master/maven-deploy' }
jcenter()
}
}
dependencies {
compile 'org.jsoup:jsoup:1.8.3'
testCompile 'junit:junit:4.12'
}
task wrapper(type: Wrapper) {
gradleVersion = '2.12'
}
// mvn install:install-file
// -DgroupId=com.leocardz
// -DartifactId=link-preview
// -Dversion=1.1
// -Dpackaging=jar
// -Dfile=C:\Users\broadbear\workspace\link-preview\build\libs\link-preview.jar
// -DlocalRepositoryPath=C:\Users\broadbear\workspace\maven-repo
uploadArchives {
repositories {
mavenDeployer {
repository(url: 'file:C:/Users/broadbear/workspace/maven-repo/')
pom.version = '1.2'
pom.artifactId = 'link-preview'
}
}
}
task prod {
dependsOn uploadArchives
}