Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dariah
search
Commits
59293a96
Commit
59293a96
authored
May 12, 2021
by
Gradl, Tobias
Browse files
Fix deb publish
parent
7481cb36
Changes
2
Hide whitespace changes
Inline
Side-by-side
gradle/wrapper/gradle-wrapper.properties
View file @
59293a96
distributionBase
=
GRADLE_USER_HOME
distributionPath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-6.
6
.1-bin.zip
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-6.
7
.1-bin.zip
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
search-ui/build.gradle
View file @
59293a96
...
...
@@ -38,35 +38,6 @@ dependencies {
testCompileOnly
"org.projectlombok:lombok"
developmentOnly
"org.springframework.boot:spring-boot-devtools"
// =======================
// Old ... remove
// =======================
//compile "org.springframework:spring-context:$springVersion"
//compile "org.springframework:spring-beans:$springVersion"
//compile "org.springframework:spring-core:$springVersion"
//compile "org.springframework:spring-webmvc:$springVersion"
//compile "org.springframework:spring-web:$springVersion"
//compile "org.springframework.security:spring-security-core:4.2.1.RELEASE"
//compile "org.springframework.security:spring-security-web:4.2.1.RELEASE"
//compile "org.springframework.security:spring-security-config:4.2.1.RELEASE"
//compile "org.apache.httpcomponents:httpclient:$httpComponentsVersion"
//compile "org.apache.tiles:tiles-core:$tilesVersion"
//compile "org.apache.tiles:tiles-jsp:$tilesVersion"
//compile "org.apache.tiles:tiles-api:$tilesVersion"
/* compile "org.slf4j:slf4j-api:$slf4jVersion"
compile "ch.qos.logback:logback-core:$logbackVersion"
compile "ch.qos.logback:logback-classic:$logbackVersion"
compile "javax.servlet:jstl:1.2"
compile "org.yaml:snakeyaml:1.18"
runtime "org.slf4j:jcl-over-slf4j:$slf4jVersion"
runtime "org.slf4j:log4j-over-slf4j:$slf4jVersion"
runtime "org.apache.logging.log4j:log4j-to-slf4j:2.7"
testImplementation "org.springframework:spring-test:$springVersion"
testImplementation "junit:junit:4.12"
testImplementation "org.mockito:mockito-all:1.10.19"
providedCompile "javax.servlet:servlet-api:2.5"
providedCompile "javax.servlet.jsp:jsp-api:2.1"*/
}
bootWar
{
...
...
@@ -104,6 +75,7 @@ ospackage {
from
(
"src/main/resources/application.deb.yml"
)
{
into
"/etc/dfa/search"
fileType
=
CONFIG
|
NOREPLACE
rename
{
String
filename
->
filename
.
replace
(
"application.deb.yml"
,
"search.yml"
)
}
...
...
@@ -141,9 +113,10 @@ task publishDebPackage {
dependsOn
buildDeb
def
distroPath
=
"$buildDir/distributions/"
doLast
{
println
"VERSON $version"
if
(
version
.
endsWith
(
'SNAPSHOT'
)
||
version
.
endsWith
(
'RELEASE'
))
{
aptRepo
=
version
.
endsWith
(
'SNAPSHOT'
)
?
aptTestingRepo
:
aptReleasesRepo
println
"Publishing Debian package $debFile as user $repoUser to $aptRepo"
;
println
"Publishing Debian package $debFile as user $repoUser to $aptRepo"
exec
{
executable
"curl"
args
"-f"
,
"-u"
,
"$repoUser:$repoPass"
,
"-H"
,
"Content-Type: multipart/form-data"
,
"--data-binary"
,
"@$distroPath$debFile"
,
"$aptRepo"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment