Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,7 @@ gradle-app.setting
# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
# gradle/wrapper/gradle-wrapper.properties
.idea

nexus-data/
.project
.settings/
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
FROM openjdk:8 as builder
#FROM openjdk:8 as builder

COPY . .
RUN ./gradlew jar
#COPY . .
#RUN ./gradlew jar

#FROM sonatype/nexus3:3.49.0
FROM klo2k/nexus3
FROM sonatype/nexus3:3.60.0
#FROM klo2k/nexus3
#docker build . -t nex --platform linux/arm64/v8
#export DOCKER_DEFAULT_PLATFORM=linux/arm64/v8
#docker run -v $PWD/nexus-data:/nexus-data -p 8081:8081 nex
#Nexus 3 version to use
ARG NEXUS_VERSION=3.49.0
ARG RUNDECK_PLUGIN_VERSION=1.1.0
ARG RUNDECK_PLUGIN_VERSION=1.1.3

USER root

Expand All @@ -21,7 +21,7 @@ USER root
RUN mkdir -p system/com/nongfenqi/nexus/plugin/${RUNDECK_PLUGIN_VERSION}


COPY --from=builder build/libs/nexus3-rundeck-plugin-${RUNDECK_PLUGIN_VERSION}.jar \
COPY build/libs/nexus3-rundeck-plugin-${RUNDECK_PLUGIN_VERSION}.jar \
$NEXUS_HOME/system/com/nongfenqi/nexus/plugin/${RUNDECK_PLUGIN_VERSION}/nexus3-rundeck-plugin-${RUNDECK_PLUGIN_VERSION}.jar


Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ The plugin provides the following new HTTP resources :
- `v` : versions of the artifacts to match
- `p` : packaging of the artifacts to match ('jar', 'war', etc)
- `c` : classifier of the artifacts to match ('sources', 'javadoc', etc)
- `l` : limit - max number of results to return, default value is 50
- `l` : limit - max number of results to return, default value is 10000

- `http://NEXUS_HOST/service/rest/rundeck/maven/options/version` : return a json array with the version of the matching artifacts.
Parameters (all optional) :
Expand Down
12 changes: 6 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
group 'com.nongfenqi.nexus.plugin'
version '1.1.1'

version '1.1.3'

apply plugin: "io.github.goooler.osgi"
apply plugin: 'java'
sourceCompatibility = 1.8

apply plugin: 'osgi'
apply plugin: 'com.github.lburgazzoli.karaf'

buildscript {
Expand All @@ -15,19 +14,20 @@ buildscript {
}
}
dependencies {
classpath "gradle.plugin.com.github.lburgazzoli:gradle-karaf-plugin:0.0.47"
classpath "gradle.plugin.com.github.lburgazzoli:gradle-karaf-plugin:0.5.6"
classpath "io.github.goooler.osgi:gradle-legacy-osgi-plugin:0.8.2"
}
}
repositories {
mavenCentral()
}

dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compileOnly group: 'org.sonatype.nexus', name: 'nexus-plugin-api', version: '3.49.0-02'
compileOnly group: 'org.sonatype.nexus', name: 'nexus-repository', version: '3.49.0-02'
compileOnly group: 'org.sonatype.nexus', name: 'nexus-rest', version: '3.49.0-02'
compileOnly group: 'org.projectlombok', name: 'lombok', version: '1.16.18'
compileOnly 'org.projectlombok:lombok:1.18.32'
annotationProcessor 'org.projectlombok:lombok:1.18.32'
}

jar {
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 3 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#Wed Aug 09 13:56:05 CST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-rc-2-all.zip
Loading