gradle 내부망 주소로 변경
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -29,11 +29,22 @@ configurations {
|
||||
}
|
||||
}
|
||||
|
||||
def repoUrl = System.getProperty("org.gradle.project.repoUrl")
|
||||
?: System.getenv("ORG_GRADLE_PROJECT_repoUrl")
|
||||
?: "http://172.16.4.56:18100/repository/maven-public/"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven { url "https://repo.osgeo.org/repository/release/" }
|
||||
maven {
|
||||
url = uri(repoUrl)
|
||||
allowInsecureProtocol = true
|
||||
}
|
||||
}
|
||||
|
||||
//repositories {
|
||||
// mavenCentral()
|
||||
// maven { url "https://repo.osgeo.org/repository/release/" }
|
||||
//}
|
||||
|
||||
dependencies {
|
||||
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-web'
|
||||
|
||||
Binary file not shown.
@@ -650,7 +650,7 @@ code + .copy-button {
|
||||
<script type="text/javascript">
|
||||
function configurationCacheProblems() { return (
|
||||
// begin-report-data
|
||||
{"diagnostics":[{"locations":[{}],"problem":[{"text":"Properties should be assigned using the 'propName = value' syntax. Setting a property via the Gradle-generated 'propName value' or 'propName(value)' syntax in Groovy DSL has been deprecated."}],"severity":"WARNING","problemDetails":[{"text":"This is scheduled to be removed in Gradle 10.0."}],"contextualLabel":"Properties should be assigned using the 'propName = value' syntax. Setting a property via the Gradle-generated 'propName value' or 'propName(value)' syntax in Groovy DSL has been deprecated.","documentationLink":"https://docs.gradle.org/8.14/userguide/upgrading_version_8.html#groovy_space_assignment_syntax","problemId":[{"name":"deprecation","displayName":"Deprecation"},{"name":"properties-should-be-assigned-using-the-propname-value-syntax-setting-a-property-via-the-gradle-generated-propname-value-or-propname-value-syntax-in-groovy-dsl","displayName":"Properties should be assigned using the 'propName = value' syntax. Setting a property via the Gradle-generated 'propName value' or 'propName(value)' syntax in Groovy DSL has been deprecated."}],"solutions":[[{"text":"Use assignment ('url = <value>') instead."}]]}],"problemsReport":{"totalProblemCount":1,"buildName":"kamco-status-update-job","requestedTasks":":classes :testClasses","documentationLink":"https://docs.gradle.org/8.14/userguide/reporting_problems.html","documentationLinkCaption":"Problem report","summaries":[]}}
|
||||
{"diagnostics":[{"locations":[{"path":"C:\\workspace\\kamco-cd-cron\\gukyuin\\status-update\\src\\main\\java\\com\\kamco\\cd\\kamcoback\\config\\resttemplate\\ExternalHttpClient.java"},{"taskPath":":compileJava"}],"problem":[{"text":"Some input files use or override a deprecated API."}],"severity":"ADVICE","problemDetails":[{"text":"Note: Some input files use or override a deprecated API."}],"contextualLabel":"Some input files use or override a deprecated API.","problemId":[{"name":"java","displayName":"Java compilation"},{"name":"compilation","displayName":"Compilation"},{"name":"compiler.note.deprecated.plural","displayName":"Some input files use or override a deprecated API."}]},{"locations":[{"path":"C:\\workspace\\kamco-cd-cron\\gukyuin\\status-update\\src\\main\\java\\com\\kamco\\cd\\kamcoback\\config\\resttemplate\\ExternalHttpClient.java"},{"taskPath":":compileJava"}],"problem":[{"text":"Recompile with -Xlint:deprecation for details."}],"severity":"ADVICE","problemDetails":[{"text":"Note: Recompile with -Xlint:deprecation for details."}],"contextualLabel":"Recompile with -Xlint:deprecation for details.","problemId":[{"name":"java","displayName":"Java compilation"},{"name":"compilation","displayName":"Compilation"},{"name":"compiler.note.deprecated.recompile","displayName":"Recompile with -Xlint:deprecation for details."}]},{"locations":[{"path":"C:\\workspace\\kamco-cd-cron\\gukyuin\\status-update\\src\\main\\java\\com\\kamco\\cd\\kamcoback\\common\\utils\\enums\\Enums.java"},{"taskPath":":compileJava"}],"problem":[{"text":"Some input files use unchecked or unsafe operations."}],"severity":"ADVICE","problemDetails":[{"text":"Note: Some input files use unchecked or unsafe operations."}],"contextualLabel":"Some input files use unchecked or unsafe operations.","problemId":[{"name":"java","displayName":"Java compilation"},{"name":"compilation","displayName":"Compilation"},{"name":"compiler.note.unchecked.plural","displayName":"Some input files use unchecked or unsafe operations."}]},{"locations":[{"path":"C:\\workspace\\kamco-cd-cron\\gukyuin\\status-update\\src\\main\\java\\com\\kamco\\cd\\kamcoback\\common\\utils\\enums\\Enums.java"},{"taskPath":":compileJava"}],"problem":[{"text":"Recompile with -Xlint:unchecked for details."}],"severity":"ADVICE","problemDetails":[{"text":"Note: Recompile with -Xlint:unchecked for details."}],"contextualLabel":"Recompile with -Xlint:unchecked for details.","problemId":[{"name":"java","displayName":"Java compilation"},{"name":"compilation","displayName":"Compilation"},{"name":"compiler.note.unchecked.recompile","displayName":"Recompile with -Xlint:unchecked for details."}]}],"problemsReport":{"totalProblemCount":4,"buildName":"kamco-status-update-job","requestedTasks":"clean bootJar","documentationLink":"https://docs.gradle.org/8.14/userguide/reporting_problems.html","documentationLinkCaption":"Problem report","summaries":[]}}
|
||||
// end-report-data
|
||||
);}
|
||||
</script>
|
||||
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
1
|
||||
@@ -1,6 +1,7 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-bin.zip
|
||||
#distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-bin.zip
|
||||
distributionUrl=http\://172.16.4.56:18100/repository/gradle-distributions/gradle-8.14-bin.zip
|
||||
networkTimeout=10000
|
||||
validateDistributionUrl=true
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
|
||||
98
gukyuin/status-update/offline_upload_to_nexus.sh
Normal file
98
gukyuin/status-update/offline_upload_to_nexus.sh
Normal file
@@ -0,0 +1,98 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# ====== 여기만 네 환경에 맞게 ======
|
||||
NEXUS="http://localhost:18100" # 또는 http://localhost:18100 http://172.16.4.56:18100
|
||||
REPO="maven-releases" # 가능하면 seed 전용 repo로 바꿔라 (maven-seed)
|
||||
USER="admin"
|
||||
PASS="Kamco2026!" # 실제 비번
|
||||
# ===================================
|
||||
|
||||
# 압축 풀기
|
||||
rm -rf m2repo offline-seed/m2repo
|
||||
tar -xzf m2repo-seed.tgz
|
||||
|
||||
ROOT="./m2repo"
|
||||
[ -d "$ROOT" ] || ROOT="./offline-seed/m2repo"
|
||||
[ -d "$ROOT" ] || { echo "m2repo not found"; exit 1; }
|
||||
|
||||
LOGDIR="./upload-logs"
|
||||
mkdir -p "$LOGDIR"
|
||||
OKLOG="$LOGDIR/ok.txt"
|
||||
FAILLOG="$LOGDIR/fail.txt"
|
||||
RESP="$LOGDIR/resp.tmp"
|
||||
LIST="$LOGDIR/version_dirs.txt"
|
||||
: > "$OKLOG"
|
||||
: > "$FAILLOG"
|
||||
|
||||
# 핵심: "버전 디렉토리(끝이 숫자/버전)"만 잡기 = m2repo/**/<artifact>/<version>
|
||||
# depth 고정 대신: 'pom/jar/module'이 존재하는 디렉토리만 수집
|
||||
find "$ROOT" -type f \( -name "*.pom" -o -name "*.jar" -o -name "*.module" \) -print0 \
|
||||
| xargs -0 -n1 dirname \
|
||||
| sort -u > "$LIST"
|
||||
|
||||
count="$(wc -l < "$LIST" | tr -d ' ')"
|
||||
echo "Version dirs = $count"
|
||||
[ "$count" -gt 0 ] || { echo "No version dirs found"; exit 1; }
|
||||
|
||||
upload_dir() {
|
||||
local verDir="$1"
|
||||
local rel="${verDir#${ROOT}/}"
|
||||
|
||||
# rel = group/path/artifact/version
|
||||
local groupPath artifact version groupId
|
||||
groupPath="$(echo "$rel" | awk -F/ '{for(i=1;i<=NF-2;i++) printf (i==NF-2? $i : $i "/")}')"
|
||||
artifact="$(echo "$rel" | awk -F/ '{print $(NF-1)}')"
|
||||
version="$(echo "$rel" | awk -F/ '{print $NF}')"
|
||||
groupId="${groupPath//\//.}"
|
||||
|
||||
local pom jar mod
|
||||
pom="$(ls -1 "$verDir"/*.pom 2>/dev/null | head -n 1 || true)"
|
||||
jar="$(ls -1 "$verDir"/*.jar 2>/dev/null | head -n 1 || true)"
|
||||
mod="$(ls -1 "$verDir"/*.module 2>/dev/null | head -n 1 || true)"
|
||||
|
||||
[ -z "$pom" ] && [ -z "$jar" ] && return 0
|
||||
|
||||
echo "UPLOAD: $groupId:$artifact:$version"
|
||||
|
||||
args=(
|
||||
-sS -u "$USER:$PASS"
|
||||
-X POST "$NEXUS/service/rest/v1/components?repository=$REPO"
|
||||
-F "maven2.groupId=$groupId"
|
||||
-F "maven2.artifactId=$artifact"
|
||||
-F "maven2.version=$version"
|
||||
)
|
||||
|
||||
n=1
|
||||
if [ -n "$pom" ]; then
|
||||
args+=( -F "maven2.asset${n}=@${pom}" -F "maven2.asset${n}.extension=pom" ); n=$((n+1))
|
||||
fi
|
||||
if [ -n "$jar" ]; then
|
||||
args+=( -F "maven2.asset${n}=@${jar}" -F "maven2.asset${n}.extension=jar" ); n=$((n+1))
|
||||
fi
|
||||
if [ -n "$mod" ]; then
|
||||
args+=( -F "maven2.asset${n}=@${mod}" -F "maven2.asset${n}.extension=module" ); n=$((n+1))
|
||||
fi
|
||||
|
||||
http_code="$(curl -w "%{http_code}" -o "$RESP" "${args[@]}" || true)"
|
||||
if [ "$http_code" = "204" ] || [ "$http_code" = "201" ]; then
|
||||
echo "$groupId:$artifact:$version" >> "$OKLOG"
|
||||
return 0
|
||||
else
|
||||
echo "FAIL $http_code $groupId:$artifact:$version" >> "$FAILLOG"
|
||||
sed -e 's/\r$//' "$RESP" >> "$FAILLOG" || true
|
||||
echo >> "$FAILLOG"
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
fails=0
|
||||
while IFS= read -r d; do
|
||||
if ! upload_dir "$d"; then
|
||||
fails=$((fails+1))
|
||||
fi
|
||||
done < "$LIST"
|
||||
|
||||
echo "DONE. ok=$(wc -l < "$OKLOG" | tr -d ' ') fail=$fails"
|
||||
echo "OKLOG : $OKLOG"
|
||||
echo "FAILLOG: $FAILLOG"
|
||||
@@ -1,6 +1,17 @@
|
||||
pluginManagement {
|
||||
plugins {
|
||||
id 'org.jetbrains.kotlin.jvm' version '2.2.20'
|
||||
// plugins {
|
||||
// id 'org.jetbrains.kotlin.jvm' version '2.2.20'
|
||||
// }
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
url = uri(
|
||||
System.getProperty("org.gradle.project.repoUrl")
|
||||
?: System.getenv("ORG_GRADLE_PROJECT_repoUrl")
|
||||
?: "http://172.16.4.56:18100/repository/maven-public/"
|
||||
)
|
||||
allowInsecureProtocol = true
|
||||
}
|
||||
}
|
||||
}
|
||||
rootProject.name = 'kamco-status-update-job'
|
||||
|
||||
Reference in New Issue
Block a user