Skip to content

Commit 2665a3f

Browse files
author
Erich Jagomagis
committed
Improvements for central Maven Central repository
1 parent 9c38eeb commit 2665a3f

4 files changed

Lines changed: 49 additions & 14 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
name: Build Java Core Library
22

33
on:
4-
# Triggers the workflow on push or pull request events but only for the "main" branch
54
push:
65
branches: [ "master" ]
7-
8-
# Allows you to run this workflow manually from the Actions tab
96
workflow_dispatch:
107

11-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
128
jobs:
139
test:
1410
runs-on: ubuntu-latest

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# BitWeb OÜ Core library
1+
# BitWeb OÜ Spring Core library
22

33
Given library provides basic functionality that is required by any HTTP web service.
44
Given library contains only generic functionality that is not specific to any field/subject.
55

6-
Documentation and release notes can be found from Confluence: https://bitwebou.atlassian.net/wiki/spaces/BWCL/pages/124911640/Java+core-lib
6+
Documentation and release notes can be found from Wiki: https://github.com/BitWeb/java-core-lib/wiki

‎library.gradle‎

Lines changed: 46 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,66 @@
11
apply plugin: 'java-library'
22
apply plugin: 'maven-publish'
3+
apply plugin: 'signing'
4+
5+
java {
6+
withJavadocJar()
7+
withSourcesJar()
8+
}
39

410
publishing {
511
publications {
612
mavenJava(MavenPublication) {
13+
artifactId = 'spring-core'
714
from components.java
15+
pom {
16+
name = 'Bitweb Java Core Library'
17+
description = 'Bitweb Spring Boot Java Core Library'
18+
url = 'https://github.com/BitWeb/java-core-lib'
19+
//properties = []
20+
licenses {
21+
license {
22+
name = 'MIT License'
23+
url = 'https://github.com/BitWeb/java-core-lib/blob/main/LICENSE'
24+
}
25+
}
26+
developers {
27+
developer {
28+
id = 'erichjag'
29+
name = 'Erich Jagomägis'
30+
email = 'erich@bitweb.ee'
31+
}
32+
}
33+
scm {
34+
connection = 'scm:https://github.com/BitWeb/java-core-lib.git'
35+
developerConnection = 'scm:git@github.com:BitWeb/java-core-lib.git'
36+
url = 'https://github.com/BitWeb/java-core-lib'
37+
}
38+
}
839
}
940
}
1041
repositories {
1142
maven {
12-
def releasesRepoUrl = "https://nexus.bitweb.ee/repository/maven-public/"
13-
def snapshotsRepoUrl = "https://nexus.bitweb.ee/repository/maven-snapshot/"
14-
15-
name 'nexus'
16-
url = project.version.contains('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
43+
def releasesRepoUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
44+
def snapshotsRepoUrl = 'https://oss.sonatype.org/content/repositories/snapshots/'
45+
url = version.contains('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
1746
credentials {
18-
username = project.repoUser
19-
password = project.repoPassword
47+
username = project.mavenCentralUsername
48+
password = project.mavenCentralPassword
2049
}
2150
}
2251
}
2352
}
2453

54+
signing {
55+
sign publishing.publications.mavenJava
56+
}
57+
58+
javadoc {
59+
if(JavaVersion.current().isJava9Compatible()) {
60+
options.addBooleanOption('html5', true)
61+
}
62+
}
63+
2564
jar {
2665
from sourceSets.main.allSource
2766
}

‎settings.gradle‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
rootProject.name = 'core'
1+
rootProject.name = 'spring-core'
22

0 commit comments

Comments
 (0)