File tree Expand file tree Collapse file tree 2 files changed +5
-24
lines changed Expand file tree Collapse file tree 2 files changed +5
-24
lines changed Original file line number Diff line number Diff line change 9
9
10
10
## Install
11
11
12
- Wasp final releases are published to maven central through sonatype.
13
- Snapshot releases are published to a private Gitlab Registry:
12
+ Wasp final releases are published to maven central through sonatype, snapshot releases are published to sonatype maven-snapshots .
13
+
14
14
15
15
``` scala
16
16
libraryDependencies += " it.agilelab" %% " wasp-consumers-spark" % " 3.0.1"
@@ -19,17 +19,7 @@ libraryDependencies += "it.agilelab" %% "wasp-consumers-spark" % "3.0.1"
19
19
or (for snapshots)
20
20
21
21
``` scala
22
- val gitlabHost = " gitlab.com"
23
- val gitlabRegistryEndpoint = s " https:// ${gitlabHost}/api/v4/projects/3748812/packages/maven "
24
-
25
- ThisBuild / resolvers += " gitlab" at gitlabRegistryEndpoint
26
- ThisBuild / credentials += Credentials (
27
- " GitLab Packages Registry" ,
28
- gitlabHost,
29
- " <token name>" ,
30
- " <token>"
31
- )
32
-
22
+ ThisBuild / resolvers += " Sonatype Central Snapshots" at " https://central.sonatype.com/repository/maven-snapshots"
33
23
libraryDependencies += " it.agilelab" %% " wasp-consumers-spark" % " 3.1.0-SNAPSHOT"
34
24
```
35
25
To download Wasp snapshot releases you need a personal access token or a project access token with read_api scope and role Developer to GitLab Wasp project.
Original file line number Diff line number Diff line change @@ -115,19 +115,10 @@ class BasicSettings(
115
115
System .getenv(" SONATYPE_PASSWORD" )
116
116
)
117
117
118
- val gitlabHost = " gitlab.com"
119
- val gitlabRegistryEndpoint = s " https:// ${gitlabHost}/api/v4/projects/3748812/packages/maven "
120
- val gitlabCredentials = Credentials (
121
- " GitLab Packages Registry" ,
122
- gitlabHost,
123
- " gitlab-ci-token" ,
124
- System .getenv().get(" CI_JOB_TOKEN" )
125
- )
126
-
127
118
lazy val publishSettings = Seq (
128
- publishTo := { if (isSnapshot.value) Some (" GitLab " at gitlabRegistryEndpoint ) else localStaging.value },
119
+ publishTo := { if (isSnapshot.value) Some (" central-snapshots " at centralSnapshots ) else localStaging.value },
129
120
publishMavenStyle := true ,
130
- credentials ++= Seq (sonatypeCentralCredentials, gitlabCredentials ),
121
+ credentials ++= Seq (sonatypeCentralCredentials),
131
122
pgpPassphrase := Option (System .getenv().get(" PGP_PASSPHRASE" )).map(_.toCharArray),
132
123
Global / useGpg := false
133
124
)
You can’t perform that action at this time.
0 commit comments