demo-cicd seed

This commit is contained in:
seed
2026-09-17 17:07:33 +08:00
commit 42d2f95451
13 changed files with 1567 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
plugins { id 'java-library'; id 'maven-publish' }
group = 'com.otone.demo'
version = "1.0.${System.getenv('BUILD_NUMBER') ?: '0'}"
repositories { maven { url = 'https://nexus.otone.run/repository/maven-central/' } }
publishing {
repositories {
maven {
url = 'https://nexus.otone.run/repository/maven-releases/'
credentials {
username = findProperty('nexusUser')
password = findProperty('nexusPass')
}
}
}
publications { maven(MavenPublication) { from components.java } }
}
@@ -0,0 +1,4 @@
package com.otone.demo;
public class Greet {
public static String greet(String name) { return "hi " + name; }
}