Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- group 'tech.blueglacier'
- version '1.0.1'
- apply plugin: 'java'
- sourceCompatibility = 1.8
- repositories {
- mavenCentral()
- }
- dependencies {
- compile([group: 'org.mockito', name: 'mockito-all', version: '1.10.19'],
- [group: 'javax.mail', name: 'mail', version: '1.4.7'],
- [group: 'net.freeutils', name: 'jcharset', version: '2.0'],
- [group: 'org.apache.james', name: 'apache-mime4j', version: '0.8.0'],
- [group: 'commons-codec', name: 'commons-codec', version: '1.10'],
- [group: 'org.apache.commons', name: 'commons-lang3', version: '3.5'],
- [group: 'commons-io', name: 'commons-io', version: '2.5'],
- [group: 'commons-configuration', name: 'commons-configuration', version: '1.10'],
- [group: 'ch.qos.logback', name: 'logback-core', version: '1.2.1'],
- [group: 'org.slf4j', name: 'slf4j-api', version: '1.7.24'],
- [group: 'commons-collections', name: 'commons-collections', version: '3.2.2']
- )
- testCompile group: 'org.testng', name: 'testng', version: '6.11'
- }
- test {
- useTestNG()
- testLogging.showCauses = true;
- testLogging.showExceptions = true;
- testLogging.showStackTraces = true;
- testLogging.showStandardStreams = true;
- testLogging.exceptionFormat = 'full';
- testLogging.events "started", "passed", "skipped", "failed", "standardOut", "standardError";
- }
- apply plugin: 'maven'
- task createPom << {
- pom {
- project {
- groupId 'tech.blueglacier'
- artifactId 'email-mime-parser'
- version '1.0.1'
- inceptionYear '2016'
- licenses {
- license {
- name 'The MIT License (MIT)'
- url 'https://opensource.org/licenses/MIT'
- }
- }
- }
- }.writeTo("pom.xml")
- }
- apply plugin: 'maven'
- apply plugin: 'signing'
- task javadocJar(type: Jar) {
- classifier = 'javadoc'
- from javadoc
- }
- task sourcesJar(type: Jar) {
- classifier = 'sources'
- from sourceSets.main.allSource
- }
- artifacts {
- archives javadocJar, sourcesJar
- }
- signing {
- sign configurations.archives
- }
- uploadArchives {
- repositories {
- mavenDeployer {
- beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
- snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots") {
- authentication(userName: ossrhUsername, password: ossrhPassword)
- }
- repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2") {
- authentication(userName: ossrhUsername, password: ossrhPassword)
- }
- pom.project {
- groupId 'tech.blueglacier'
- artifactId 'email-mime-parser'
- version '1.0.1'
- name 'email-mime-parser'
- packaging 'jar'
- // optionally artifactId can be defined here
- description 'A mime4j based simplified email mime parser for java'
- url 'https://github.com/ram-sharma-6453/email-mime-parser'
- scm {
- connection 'https://github.com/ram-sharma-6453/email-mime-parser.git'
- developerConnection 'https://github.com/ram-sharma-6453/email-mime-parser.git'
- url 'https://github.com/ram-sharma-6453/email-mime-parser'
- }
- licenses {
- license {
- name 'The MIT License (MIT)'
- url 'https://opensource.org/licenses/MIT'
- }
- }
- developers {
- developer {
- id 'ram-sharma-6453'
- name 'ram-sharma-6453'
- email 'ram.sharma.6453@gmail.com'
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement