-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
18e6f65
commit fca5f8d
Showing
1 changed file
with
64 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | ||
|