-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
90 lines (82 loc) · 2.51 KB
/
build.gradle
File metadata and controls
90 lines (82 loc) · 2.51 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.+'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
}
ext {
// read from ENV, fallback from ~/.gradle/gradle.properties
awsAccessKeyId = System.env.AWS_ACCESS_KEY_ID ?: AWS_ACCESS_KEY_ID
awsSecretAccessKey = System.env.AWS_SECRET_ACCESS_KEY ?: AWS_SECRET_ACCESS_KEY
}
}
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'signing'
dependencies {
implementation 'io.swagger.core.v3:swagger-annotations:2.0.0'
implementation 'com.squareup.okhttp:okhttp:2.7.5'
implementation 'com.squareup.okhttp:logging-interceptor:2.7.5'
implementation 'com.google.code.gson:gson:2.8.1'
implementation 'io.gsonfire:gson-fire:1.8.3'
implementation 'javax.annotation:jsr250-api:1.0'
testImplementation 'junit:junit:4.12'
}
group = 'com.passbase'
version = '1.3.0'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenCentral()
repositories {
maven {
url = "https://passbase-maven.s3.us-east-2.amazonaws.com/releases"
}
}
}
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'passbase'
from components.java
pom {
name = 'Passbase SDK'
description = 'This package is a client meant to be used on the server-side to communicate with Passbase servers.'
url = 'https://github.com/passbase/passbase-java'
licenses {
license {
name = 'MIT'
url = 'https://opensource.org/licenses/MIT'
}
}
developers {
developer {
id = 'passbase'
name = 'Passbase'
email = 'developer@passbase.com'
}
}
}
}
}
repositories {
maven {
url = "s3://passbase-maven/releases"
credentials(AwsCredentials) {
accessKey = awsAccessKeyId
secretKey = awsSecretAccessKey
}
}
}
}
task execute(type:JavaExec) {
mainClass = System.getProperty('mainClass')
classpath = sourceSets.main.runtimeClasspath
}