File tree Expand file tree Collapse file tree 1 file changed +56
-0
lines changed
Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,62 @@ spotless {
126126 }
127127}
128128
129+ publishing {
130+ publications {
131+ mavenJava(MavenPublication ) {
132+
133+ from components. java
134+
135+ pom {
136+ name = rootProject. name
137+ description = ' Client library for Flashbots MEV-share Matchmaker.'
138+ url = ' https://github.com/optimism-java/mev-share-java'
139+
140+ licenses {
141+ license {
142+ name = ' MIT License'
143+ }
144+ }
145+ developers {
146+ developer {
147+ id = ' grapebaba'
148+ name = ' Kai Chen'
149+ email = ' 281165273grape@gmail.com'
150+ }
151+ }
152+ scm {
153+ connection = ' scm:git:git://github.com/optimism-java/' + rootProject. name + ' .git'
154+ developerConnection = ' scm:git:ssh://github.com/optimism-java/' + rootProject. name + ' .git'
155+ url = ' https://github.com/optimism-java/' + rootProject. name
156+ }
157+ }
158+ }
159+ }
160+ repositories {
161+ maven {
162+ name = " GitHubPackages"
163+ url = " https://maven.pkg.github.com/optimism-java/" + rootProject. name
164+ credentials {
165+ username = System . getenv(" GITHUB_ACTOR" )
166+ password = System . getenv(" GITHUB_TOKEN" )
167+ }
168+ }
169+ }
170+ }
171+
172+ signing {
173+ sign publishing. publications. mavenJava
174+ def signingKey = findProperty(" signingKey" )
175+ def signingPassword = findProperty(" signingPassword" )
176+ useInMemoryPgpKeys(signingKey, signingPassword)
177+ }
178+
179+ nexusPublishing {
180+ repositories {
181+ sonatype()
182+ }
183+ }
184+
129185tasks. register(' printSourceDirs' ) {
130186 print (" $projectDir \n " )
131187 print (sourceSets)
You can’t perform that action at this time.
0 commit comments