Skip to content

Commit a5f5f7e

Browse files
committed
Merge pull request #174 from TileDB-Inc/victorgiannakouris/remove-nexus-plugin
Removed Nexus Plugin
2 parents eedec7d + 6d417fa commit a5f5f7e

File tree

3 files changed

+81
-73
lines changed

3 files changed

+81
-73
lines changed

azure-pipelines.yml

Lines changed: 57 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -13,65 +13,65 @@ trigger:
1313
- "*"
1414

1515
stages:
16-
- stage: CI
17-
condition: not(startsWith(variables['Build.SourceBranch'], 'refs/tags'))
18-
jobs:
19-
- job: Windows
20-
strategy:
21-
matrix:
22-
VS2019:
23-
imageName: 'windows-2019'
24-
TILEDB_S3: ON
25-
pool:
26-
vmImage: $(imageName)
27-
steps:
28-
- task: Gradle@2
29-
inputs:
30-
workingDirectory: ''
31-
gradleWrapperFile: 'gradlew.bat'
32-
gradleOptions: '-Xmx3072m'
33-
javaHomeOption: 'JDKVersion'
34-
jdkVersionOption: 'default'
35-
tasks: 'checkFormat assemble test'
36-
37-
- job: Linux_OSX
38-
strategy:
39-
matrix:
40-
ubuntu_18:
41-
imageName: 'ubuntu-18.04'
42-
macOS:
43-
imageName: 'macOS-10.14'
44-
pool:
45-
vmImage: $(imageName)
46-
steps:
47-
- template: ci/tiledb-java-linux_osx.yml
48-
49-
- stage: BuildNativeLibs
50-
condition: or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), startsWith(variables['Build.SourceBranch'], 'refs/tags'))
51-
jobs:
52-
- job: Linux_OSX
53-
strategy:
54-
matrix:
55-
ubuntu_18:
56-
imageName: 'ubuntu-18.04'
57-
macOS:
58-
imageName: 'macOS-10.14'
59-
pool:
60-
vmImage: $(imageName)
61-
steps:
62-
- template: ci/tiledb-java-linux_osx-release.yml
63-
- job: Windows
64-
strategy:
65-
matrix:
66-
windows_19:
67-
imageName: 'windows-2019'
68-
pool:
69-
vmImage: $(imageName)
70-
steps:
71-
- template: ci/tiledb-java-windows-release.yml
16+
# - stage: CI
17+
# condition: not(startsWith(variables['Build.SourceBranch'], 'refs/tags'))
18+
# jobs:
19+
# - job: Windows
20+
# strategy:
21+
# matrix:
22+
# VS2019:
23+
# imageName: 'windows-2019'
24+
# TILEDB_S3: ON
25+
# pool:
26+
# vmImage: $(imageName)
27+
# steps:
28+
# - task: Gradle@2
29+
# inputs:
30+
# workingDirectory: ''
31+
# gradleWrapperFile: 'gradlew.bat'
32+
# gradleOptions: '-Xmx3072m'
33+
# javaHomeOption: 'JDKVersion'
34+
# jdkVersionOption: 'default'
35+
# tasks: 'checkFormat assemble test'
36+
#
37+
# - job: Linux_OSX
38+
# strategy:
39+
# matrix:
40+
# ubuntu_18:
41+
# imageName: 'ubuntu-18.04'
42+
# macOS:
43+
# imageName: 'macOS-10.14'
44+
# pool:
45+
# vmImage: $(imageName)
46+
# steps:
47+
# - template: ci/tiledb-java-linux_osx.yml
48+
#
49+
# - stage: BuildNativeLibs
50+
# condition: or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), startsWith(variables['Build.SourceBranch'], 'refs/tags'))
51+
# jobs:
52+
# - job: Linux_OSX
53+
# strategy:
54+
# matrix:
55+
# ubuntu_18:
56+
# imageName: 'ubuntu-18.04'
57+
# macOS:
58+
# imageName: 'macOS-10.14'
59+
# pool:
60+
# vmImage: $(imageName)
61+
# steps:
62+
# - template: ci/tiledb-java-linux_osx-release.yml
63+
# - job: Windows
64+
# strategy:
65+
# matrix:
66+
# windows_19:
67+
# imageName: 'windows-2019'
68+
# pool:
69+
# vmImage: $(imageName)
70+
# steps:
71+
# - template: ci/tiledb-java-windows-release.yml
7272

7373
- stage: Release
74-
condition: or(startsWith(variables['Build.SourceBranch'], 'refs/tags'), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
74+
condition: or(eq(startsWith(variables['Build.SourceBranch'], 'refs/heads/master'), startsWith(variables['Build.SourceBranch'], 'refs/tags'))
7575
jobs:
7676
- job: All_OS
7777
strategy:

build.gradle

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@ plugins {
22
id 'java-library'
33
id 'idea'
44
id 'maven-publish'
5-
id "de.marcphilipp.nexus-publish" version "0.4.0"
65
id 'signing'
76
id 'com.github.sherter.google-java-format' version '0.8'
87
id 'io.codearte.nexus-staging' version '0.12.0'
98
id 'com.google.osdetector' version '1.6.0'
109
}
1110

1211
group 'io.tiledb'
13-
version '0.2.8-SNAPSHOT'
12+
version '0.0.1'
1413

1514
repositories {
1615
jcenter()
@@ -203,19 +202,21 @@ publishing {
203202
}
204203
}
205204
}
206-
}
207205

208-
nexusPublishing {
209206
repositories {
210207
maven {
211-
nexusUrl = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
212-
snapshotRepositoryUrl = uri("https://oss.sonatype.org/content/repositories/snapshots/")
213-
username = System.getenv('SONATYPE_USERNAME')
214-
password = System.getenv('SONATYPE_PASSWORD')
208+
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
209+
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
210+
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
211+
credentials {
212+
username System.getenv('SONATYPE_USERNAME')
213+
password System.getenv('SONATYPE_PASSWORD')
214+
}
215215
}
216216
}
217217
}
218218

219+
219220
signing {
220221
sign publishing.publications.mavenJava
221222
sign configurations.archives

ci/tiledb-java-final-jar.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ steps:
66
unset SYSTEM
77
set +e
88
9-
mv ../libraries/* .
9+
#mv ../libraries/* .
1010
1111
mkdir -p ./build/install/lib
1212
mkdir ./build/install/lib64
@@ -55,20 +55,27 @@ steps:
5555
condition: failed() # only run this job if the build step failed
5656
displayName: "Print log files (failed build only)"
5757
58-
- task: PublishBuildArtifacts@1
58+
# - task: PublishBuildArtifacts@1
59+
# inputs:
60+
# pathtoPublish: $(Build.BinariesDirectory)
61+
# artifactName: final-jar
62+
# condition: succeeded()
63+
64+
- task: GithubRelease@0
65+
displayName: 'GitHub Release'
66+
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags')
5967
inputs:
60-
pathtoPublish: $(Build.BinariesDirectory)
61-
artifactName: final-jar
62-
condition: succeeded()
68+
gitHubConnection: github_tiledb
69+
repositoryName: TileDB-Inc/TileDB-Java
70+
action: "create"
71+
assets: $(Build.BinariesDirectory)/*.jar
6372

6473
- bash: |
65-
echo "USERNAME"
66-
echo $SONATYPE_USERNAME
6774
./ci/upload_to_maven.sh
6875
env:
6976
GPG_KEY_ID: $(GPG_KEY_ID)
7077
GPG_PASSPHRASE: $(GPG_PASSPHRASE)
7178
GPG_SECRET_KEYS_ENC: $(GPG_SECRET_KEYS_ENC)
7279
SONATYPE_USERNAME: $(SONATYPE_USERNAME)
7380
SONATYPE_PASSWORD: $(SONATYPE_PASSWORD)
74-
displayName: "Publish"
81+
displayName: "Publish to Maven"

0 commit comments

Comments
 (0)