Skip to content

Commit

Permalink
publish v1.0.0 selenium-java client
Browse files Browse the repository at this point in the history
  • Loading branch information
sudharsan-selvaraj committed Jun 7, 2021
1 parent 18e6f65 commit fca5f8d
Showing 1 changed file with 64 additions and 3 deletions.
67 changes: 64 additions & 3 deletions projects/selenium-java/build.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,76 @@
plugins {
id 'java'
id 'java-library'
id 'maven-publish'
id 'signing'
}

group 'org.example'
version '1.0-SNAPSHOT'
group 'io.github.sudharsan-selvaraj'
version '1.0.0'

repositories {
mavenCentral()
}

java {
withJavadocJar()
withSourcesJar()
}


signing {
sign publishing.publications
}

publishing {
publications {
mavenJava(MavenPublication) {
groupId = "io.github.sudharsan-selvaraj"
artifactId = "wow-xhr"
version = "1.0.0"

from components.java
pom {
name = 'wow-xhr'
description = 'Simple library to manipulate HTTP requests/responses and capture network logs made by the browser using selenium tests without using any proxies'
url = 'https://github.com/sudharsan-selvaraj/spydriver'

developers {
developer {
name = 'Sudharsan Selvaraj'
email = '[email protected]'
url = 'https://github.com/sudharsan-selvaraj'
id = 'sudharsan-selvaraj'
}
}
licenses {
license {
name = 'Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution = 'repo'
}
}
scm {
url = 'https://github.com/sudharsan-selvaraj/wow-xhr'
connection = 'scm:git:ssh://[email protected]:sudharsan-selvaraj/wow-xhr.git'
developerConnection = 'scm:git:ssh://[email protected]:sudharsan-selvaraj/wow-xhr.git'
tag = 'HEAD'
}
}
}
}
repositories {
maven {
credentials {
username project.findProperty("sonatypeUser")?.toString() ?: System.getenv("SONATYPE_USER")
password project.findProperty("sonatypePassword")?.toString() ?: System.getenv("SONATYPE_PASSWORD")
}
def releasesRepoUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
def snapshotsRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
}
}
}

dependencies {
implementation group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '3.141.59'
api group: 'io.github.sudharsan-selvaraj', name: 'spydriver', version: '1.1.0'
Expand Down

0 comments on commit fca5f8d

Please sign in to comment.