Skip to content

Commit 04c2c99

Browse files
authored
chore: minor project tweaks (#2)
* minor project tweaks * add creds to workflow file
1 parent 048eadf commit 04c2c99

File tree

5 files changed

+31
-9
lines changed

5 files changed

+31
-9
lines changed

.github/workflows/lint-test-sdk.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,6 @@ jobs:
2424

2525
- name: Run tests
2626
run: ./gradlew check
27+
env:
28+
ORG_GRADLE_PROJECT_ossrhUsername: ${{ secrets.OSSRH_USERNAME }}
29+
ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.OSSRH_PASSWORD }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,4 @@ bin/
4141
### Mac OS ###
4242
.DS_Store
4343
.idea/
44+
gradle.properties

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 Eppo Data, Inc.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

build.gradle

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ publishing {
6969
}
7070
}
7171
pom {
72-
name = 'Eppo JVM SDK'
73-
description = 'Eppo SDK for JVM'
72+
name = 'Eppo JVM SDK shared library'
73+
description = 'Eppo SDK for JVM shared library'
7474
url = 'https://github.com/Eppo-exp/sdk-common-jvm'
7575
licenses {
7676
license {
@@ -94,21 +94,18 @@ publishing {
9494
}
9595
repositories {
9696
maven {
97-
// change URLs to point to your repos, e.g. http://my.org/repo
98-
def releasesRepoUrl = layout.buildDirectory.dir('repos/releases')
99-
def snapshotsRepoUrl = 'https://oss.sonatype.org/content/repositories/snapshots/'
97+
def releasesRepoUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
98+
def snapshotsRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
10099
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
101100
credentials {
102-
username = System.getenv("MAVEN_USERNAME") ? "$MAVEN_USERNAME" : ""
103-
password = System.getenv("MAVEN_PASSWORD") ? "$MAVEN_PASSWORD" : ""
101+
username = ossrhUsername
102+
password = ossrhPassword
104103
}
105104
}
106105
}
107106
}
108107

109108
signing {
110-
// only sign release versions
111-
required { isReleaseVersion && gradle.taskGraph.hasTask("publish") }
112109
sign publishing.publications.mavenJava
113110
}
114111

gradle.properties

Whitespace-only changes.

0 commit comments

Comments
 (0)