Skip to content

Commit

Permalink
Updated gradle related settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ankita10r committed May 10, 2022
1 parent 05ae408 commit bc02417
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 16 deletions.
31 changes: 16 additions & 15 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/*
* This file was generated by the Gradle 'init' task.
*/
/* This file was generated by the Gradle 'init' task.
*/

plugins {
id 'java'
Expand All @@ -10,12 +9,11 @@ plugins {
id "com.jfrog.artifactory" version "4.24.23"
}


repositories {
mavenLocal()
maven {
url = uri('https://repo.maven.apache.org/maven2')
}
// mavenLocal()
maven {
url = uri('https://repo.maven.apache.org/maven2')
}

}

Expand All @@ -38,7 +36,7 @@ dependencies {
group = 'org.mifos'
version = '1.0.0-SNAPSHOT'
sourceCompatibility = '1.8'
def artifactId = projectDir.name
def artifactId = 'ph-ee-connector-common'
def versionNumber = version

publishing {
Expand All @@ -48,7 +46,6 @@ publishing {
}
}
}

tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
Expand All @@ -57,18 +54,22 @@ artifactory {
contextUrl = 'https://fynarfin.jfrog.io/artifactory' // base artifactory url
publish {
repository {
repoKey = 'fyn-libs-snapshot' // Artifactory repository key to publish to
username = 'avik@fynarfin.io' // publisher user name
password = '****' // publisher password
repoKey = 'fyn-libs-snapshot' //Artifactory repository key to publish to
// username = 'avik@fynarfin.io' publisher user name
// password = '****' publisher password
username = gradle.app_username
password = gradle.app_password
maven = true
}
defaults {
publications ('mavenJava')
}
}

}

artifactoryPublish {
artifactoryPublish {
dependsOn jar
}


9 changes: 8 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
/*
* This file was generated by the Gradle 'init' task.
*/
//app_username = 'avik@fynarfin.io'
//app_password = 'Langlock010!'
// app_name = 'ph-ee-connector-common'
// version = '1.0.0-SNAPSHOT'

rootProject.name = 'ph-ee-connector-common'
gradle.ext{
app_username = 'avik@fynarfin.io'
app_password = 'Langlock010!'
}

0 comments on commit bc02417

Please sign in to comment.