Skip to content

Commit 5056889

Browse files
committed
initial #7 build updates
1 parent 448157c commit 5056889

File tree

3 files changed

+22
-20
lines changed

3 files changed

+22
-20
lines changed

.travis.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

build.gradle

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
plugins {
3-
id "org.sonarqube" version "3.1.1"
3+
id "org.sonarqube" version "3.2.0"
44
}
55

66
ext.componentDescription = "MITM Java Proxy"
@@ -96,6 +96,7 @@ sonarqube {
9696
property "sonar.projectKey", "website-magyar_mitmJavaProxy"
9797
property "sonar.organization", "website-magyar"
9898
property "sonar.host.url", "https://sonarcloud.io"
99+
property "sonar.java.checkstyle.reportPaths", "build/reports/checkstyle/main.xml"
99100
}
100101
}
101102

@@ -166,12 +167,26 @@ task createPom {
166167
}
167168
createPom.dependsOn(copyJarToDistributions)
168169

169-
uploadArchives {
170+
project.tasks["signArchives"].onlyIf { project.hasProperty('signing.password') }
171+
project.tasks["uploadArchives"].onlyIf { project.hasProperty('signing.password') }
172+
if (!project.hasProperty('ossrhUsername')) {
173+
project.ext.ossrhUsername = 'foo'
174+
}
175+
if (!project.hasProperty('ossrhPassword')) {
176+
project.ext.ossrhPassword = 'bar'
177+
}
178+
179+
task uploadLocal(type: Upload) {
180+
configuration = configurations.archives
181+
uploadDescriptor = true
170182
repositories {
171183
mavenDeployer {
172184
repository(url: "${myLocalRepository}")
173185
}
174186
}
187+
}
188+
189+
uploadArchives {
175190
repositories {
176191
mavenDeployer {
177192
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
@@ -214,4 +229,6 @@ uploadArchives {
214229
}
215230
}
216231
}
217-
}
232+
}
233+
project.tasks["signArchives"].onlyIf { project.hasProperty('ossrhUsername') }
234+
project.tasks["uploadArchives"].onlyIf { project.hasProperty('ossrhUsername') }

version.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
#Mon May 17 21:56:18 CEST 2021
2-
VERSION_CODE=100
1+
#Sun May 23 20:58:08 CEST 2021
2+
VERSION_CODE=104

0 commit comments

Comments
 (0)