Skip to content

Commit

Permalink
Remove unnecessary dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
DimuthuMadushan committed Dec 2, 2023
1 parent 365993d commit 1b0f25d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 35 deletions.
28 changes: 1 addition & 27 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,6 @@ plugins {
id "net.researchgate.release" version "${researchgateReleaseVersion}"
}

ext.ballerinaLangVersion = project.ballerinaLangVersion
ext.testngVersion = project.testngVersion
ext.slf4jVersion = project.slf4jVersion
ext.commonsLoggingVersion = project.commonsLoggingVersion
ext.commonsIoVersion = project.commonsIoVersion
ext.graphqlJavaVersion = project.graphqlJavaVersion
ext.googleGuavaVersion = project.googleGuavaVersion
ext.snakeYamlVersion = project.snakeYamlVersion
ext.orgJsonVersion = project.orgJsonVersion
ext.picocliVersion = project.picocliVersion
ext.stdlibGraphqlVersion = project.stdlibGraphqlVersion
ext.puppycrawlCheckstyleVersion = "8.18"

def packageName = "graphql"

dependencies {
Expand Down Expand Up @@ -64,7 +51,7 @@ allprojects {
maven {
url = 'https://maven.wso2.org/nexus/content/repositories/releases/'
}

maven {
url = 'https://maven.wso2.org/nexus/content/groups/wso2-public/'
}
Expand Down Expand Up @@ -173,8 +160,6 @@ task codeCoverageReport(type: JacocoReport) {
def artifactCacheParent = file("$project.projectDir/build/cache_parent/")
def artifactLibParent = file("$project.projectDir/build/lib_parent/")
def targetGraphqlCliJar = file("$project.rootDir/graphql-cli/build/libs/graphql-cli-${project.version}.jar")
def targetGraphqlIDLPluginJar = file("$project.rootDir/graphql-tool-idl-plugin/build/libs/" +
"graphql-tool-idl-plugin-${project.version}.jar")
def targetGraphqlBalServiceJar = file("$project.rootDir/graphql-schema-file-generator/build/libs/" +
"graphql-schema-file-generator-${project.version}.jar")

Expand All @@ -186,16 +171,11 @@ jar {
}

task directoryBuild {
inputs.dir file(project.projectDir)
doLast {
copy {
from targetGraphqlCliJar
into file("$artifactLibParent/libs")
}
copy {
from targetGraphqlIDLPluginJar
into file("$artifactLibParent/libs")
}
copy {
from targetGraphqlBalServiceJar
into file("$artifactLibParent/libs")
Expand Down Expand Up @@ -232,12 +212,6 @@ publishing {

directoryBuild.dependsOn ":${packageName}-schema-file-generator:build"
directoryBuild.dependsOn ":${packageName}-cli:build"
directoryBuild.dependsOn(checkstyleMain)
directoryBuild.dependsOn(checkstyleTest)
directoryBuild.dependsOn(compileTestJava)
directoryBuild.dependsOn(jar)
directoryBuild.dependsOn ":${packageName}-cli:jacocoTestReport"
directoryBuild.dependsOn(test)
build.dependsOn directoryBuild

publish.dependsOn build
1 change: 0 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ commonsLang3Version=3.9
commonsLoggingVersion=1.2
commonsIoVersion=2.11.0
graphqlJavaVersion=17.2
googleGuavaVersion=30.1.1-jre
snakeYamlVersion=2.0
orgJsonVersion=20231013
picocliVersion=4.0.1
Expand Down
13 changes: 6 additions & 7 deletions graphql-cli/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,12 @@ dependencies {
testImplementation "org.testng:testng:${testngVersion}"
testImplementation "org.apache.commons:commons-lang3:${commonsLang3Version}"
implementation "commons-io:commons-io:${commonsIoVersion}"
implementation "commons-logging:commons-logging:${commonsLoggingVersion}" // NEW
implementation "org.yaml:snakeyaml:${snakeYamlVersion}" // NEW
implementation "com.graphql-java:graphql-java:${graphqlJavaVersion}" // NEW
implementation "org.json:json:${orgJsonVersion}" // NEW
dist "com.graphql-java:graphql-java:${graphqlJavaVersion}" // NEW
dist "com.google.guava:guava:${googleGuavaVersion}" // NEW
dist "org.json:json:${orgJsonVersion}" // NEW
implementation "commons-logging:commons-logging:${commonsLoggingVersion}"
implementation "org.yaml:snakeyaml:${snakeYamlVersion}"
implementation "com.graphql-java:graphql-java:${graphqlJavaVersion}"
implementation "org.json:json:${orgJsonVersion}"
dist "com.graphql-java:graphql-java:${graphqlJavaVersion}"
dist "org.json:json:${orgJsonVersion}"
dist "io.ballerina.stdlib:graphql-commons:${stdlibGraphqlVersion}"

balTools ("org.ballerinalang:jballerina-tools:${ballerinaLangVersion}") {
Expand Down

0 comments on commit 1b0f25d

Please sign in to comment.