Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Commit 2fa479f

Browse files
DEVEM-535 replace gradle env and fix publishing url
1 parent 304b132 commit 2fa479f

File tree

4 files changed

+7
-22
lines changed

4 files changed

+7
-22
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@ name: CI
33
on:
44
push:
55
workflow_dispatch:
6-
schedule:
7-
- cron: '7 0 * * SUN'
86
env:
9-
ORG_GRADLE_PROJECT_alfresco_nexus_username: ${{ secrets.ALFRESCO_NEXUS_USERNAME }}
10-
ORG_GRADLE_PROJECT_alfresco_nexus_password: ${{ secrets.ALFRESCO_NEXUS_PASSWORD }}
11-
7+
GRADLE_OPTS: >-
8+
-Dorg.gradle.project.org.alfresco.maven.nexus.username=${{ secrets.ALFRESCO_NEXUS_USERNAME }}
9+
-Dorg.gradle.project.org.alfresco.maven.nexus.password=${{ secrets.ALFRESCO_NEXUS_PASSWORD }}
1210
jobs:
1311
test:
1412
runs-on: ubuntu-latest

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Version template:
2121
-->
2222
# Dynamic Extensions For Alfresco Changelog
2323

24-
## [4.0.0] - 2023-07-18
24+
## [3.1.0] - 2023-07-18
2525

2626
### Added
2727

build.gradle

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,29 +24,16 @@ sonarqube {
2424
}
2525
}
2626

27-
def copyPropertyValueIfExists(sourcePropertyName, targetPropertyName) {
28-
if (project.hasProperty(sourcePropertyName)) {
29-
project.ext[targetPropertyName] = project.property(sourcePropertyName)
30-
}
31-
}
3227

3328
allprojects {
3429
group = 'eu.xenit.de'
35-
version = '3.0.0'
30+
version = '3.1.0'
3631

3732
boolean isRelease = ci.branch?.startsWith("release")
3833
if (!isRelease) {
3934
version += "-SNAPSHOT"
4035
}
4136

42-
// It is not possible to set properties with a dot via GitHub Actions env variables, therefore we introduce support
43-
// for a non-dotted-equivalent
44-
copyPropertyValueIfExists('alfresco_nexus_username', 'org.alfresco.maven.nexus.username')
45-
copyPropertyValueIfExists('alfresco_nexus_password', 'org.alfresco.maven.nexus.password')
46-
copyPropertyValueIfExists('xenit_docker_registry_url', 'eu.xenit.docker.registry.url')
47-
copyPropertyValueIfExists('xenit_docker_registry_username', 'eu.xenit.docker.registry.username')
48-
copyPropertyValueIfExists('xenit_docker_registry_password', 'eu.xenit.docker.registry.password')
49-
5037
project.pluginManager.withPlugin('java-base') {
5138
project.sourceCompatibility = 1.8
5239
}

publish.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ publishing {
3434

3535
repositories {
3636
maven {
37-
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
38-
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
37+
def releasesRepoUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
38+
def snapshotsRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
3939
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
4040

4141
credentials {

0 commit comments

Comments
 (0)