diff --git a/build.gradle b/build.gradle index 698392c..84ad1ab 100644 --- a/build.gradle +++ b/build.gradle @@ -11,6 +11,7 @@ plugins { id 'java' id 'eclipse' id 'application' + id 'maven' } jar.enabled = true @@ -42,3 +43,24 @@ task sourcesJar(type: Jar, dependsOn: classes) { artifacts { archives sourcesJar } + +uploadArchives { + configuration = configurations.archives + repositories { + mavenDeployer { + snapshotRepository(url: MAVEN_REPO_SNAPSHOT_URL) { + authentication(userName: NEXUS_USERNAME, password: NEXUS_PASSWORD) + } + repository(url: MAVEN_REPO_RELEASE_URL) { + authentication(userName: NEXUS_USERNAME, password: NEXUS_PASSWORD) + } + pom.project { + version '1.0.4' + artifactId ARTIFACT_Id + groupId GROUP_ID + packaging TYPE + description DESCRIPTION + } + } + } +} diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 0000000..1286eb5 --- /dev/null +++ b/gradle.properties @@ -0,0 +1,21 @@ +#Maven Repo URL +MAVEN_REPO_RELEASE_URL=http://47.93.122.69:9001/repository/maven-releases/ +MAVEN_REPO_SNAPSHOT_URL=http://47.93.122.69:9001/repository/maven-snapshots/ + +#maven GroupId +GROUP=com.taover +#nexus ossde +NEXUS_USERNAME=dev +#nexus oss +NEXUS_PASSWORD=Nexus@dev + +# groupid +GROUP_ID=com.taover + +ARTIFACT_Id=com-taover-util + +# type +TYPE=jar + +# description +DESCRIPTION=util package \ No newline at end of file -- libgit2 0.21.2