Skip to content

Commit af83de5

Browse files
committed
Upload correct artifacts
1 parent be791f9 commit af83de5

File tree

5 files changed

+42
-39
lines changed

5 files changed

+42
-39
lines changed

build.gradle

+10-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
buildscript {
2+
ext {
3+
springBootVersion = '2.0.0.RC2'
4+
}
25
repositories {
36
mavenCentral()
7+
maven { url "https://repo.spring.io/snapshot" }
8+
maven { url "https://repo.spring.io/milestone" }
9+
}
10+
dependencies {
11+
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
412
}
513
}
6-
714
plugins {
8-
id 'net.researchgate.release' version '2.4.0'
9-
id 'io.codearte.nexus-staging' version '0.9.0'
15+
//id 'net.researchgate.release' version '2.4.0'
16+
id 'io.codearte.nexus-staging' version '0.11.0'
1017
}
1118

1219
apply plugin: 'java'

core/build.gradle

+18-24
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
1-
buildscript {
2-
repositories {
3-
mavenCentral()
4-
}
5-
dependencies {
6-
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.5.9.RELEASE")
7-
}
8-
}
9-
101
plugins {
11-
id 'org.springframework.boot' version '1.5.9.RELEASE'
2+
id 'org.springframework.boot'
123
}
134

145
def seleniumVersion = '3.8.1'
@@ -54,30 +45,35 @@ task sourcesJar(type: Jar) {
5445
classifier = 'sources'
5546
}
5647

48+
jar {
49+
baseName = "jlineup"
50+
archiveName = "jlineup.jar"
51+
}
52+
53+
bootJar {
54+
baseName = "jlineup"
55+
archiveName = "jlineup.jar"
56+
mainClassName = 'de.otto.jlineup.Main'
57+
launchScript()
58+
}
59+
5760
artifacts {
5861
archives sourcesJar
5962
archives javadocJar
63+
archives bootJar
6064
archives jar
6165
}
6266

63-
64-
/*
65-
[distZip, distTar].each { task ->
67+
[distZip, bootDistZip, distTar, bootDistTar].each { task ->
6668
configurations.archives.artifacts.removeAll
6769
{ it.class.simpleName == "ArchivePublishArtifact" && it.archiveTask == task }
6870
task.enabled = false
6971
}
70-
*/
7172

7273
signing {
7374
sign configurations.archives
7475
}
7576

76-
jar {
77-
baseName = "jlineup"
78-
archiveName = "jlineup.jar"
79-
}
80-
8177
tasks.processResources.doLast { task ->
8278
def resourcesDir = project.sourceSets.main.output.resourcesDir
8379
resourcesDir.mkdirs()
@@ -90,11 +86,6 @@ tasks.processResources.doLast { task ->
9086
}
9187
}
9288

93-
bootRepackage {
94-
mainClass = 'de.otto.jlineup.Main'
95-
executable = true
96-
}
97-
9889
uploadArchives {
9990
configuration = configurations.archives
10091
repositories {
@@ -103,6 +94,8 @@ uploadArchives {
10394

10495
// use this for local upload debugging instead of sonatype
10596
// repository(url: "file://${buildDir}/repo")
97+
// snapshotRepository(url: "file://${buildDir}/repo")
98+
10699

107100
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
108101
authentication(userName: sonatypeUsername, password: sonatypePassword)
@@ -112,6 +105,7 @@ uploadArchives {
112105
authentication(userName: sonatypeUsername, password: sonatypePassword)
113106
}
114107

108+
115109
pom.project {
116110
name 'JLineup'
117111
packaging 'jar'

gradle/wrapper/gradle-wrapper.jar

1.37 KB
Binary file not shown.
+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#Wed Dec 20 09:50:02 CET 2017
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
43
zipStoreBase=GRADLE_USER_HOME
54
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-bin.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.5.1-bin.zip

gradlew

+13-10
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env bash
1+
#!/usr/bin/env sh
22

33
##############################################################################
44
##
@@ -33,11 +33,11 @@ DEFAULT_JVM_OPTS=""
3333
# Use the maximum available, or set MAX_FD != -1 to use that value.
3434
MAX_FD="maximum"
3535

36-
warn ( ) {
36+
warn () {
3737
echo "$*"
3838
}
3939

40-
die ( ) {
40+
die () {
4141
echo
4242
echo "$*"
4343
echo
@@ -154,16 +154,19 @@ if $cygwin ; then
154154
esac
155155
fi
156156

157-
# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
158-
function splitJvmOpts() {
159-
JVM_OPTS=("$@")
157+
# Escape application args
158+
save () {
159+
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
160+
echo " "
160161
}
161-
eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
162-
JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
162+
APP_ARGS=$(save "$@")
163+
164+
# Collect all arguments for the java command, following the shell quoting and substitution rules
165+
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
163166

164167
# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
165-
if [[ "$(uname)" == "Darwin" ]] && [[ "$HOME" == "$PWD" ]]; then
168+
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
166169
cd "$(dirname "$0")"
167170
fi
168171

169-
exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
172+
exec "$JAVACMD" "$@"

0 commit comments

Comments
 (0)