Skip to content

Commit

Permalink
Adding silent mode (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
machaval authored Aug 19, 2022
1 parent 45b979d commit 842bbe6
Show file tree
Hide file tree
Showing 20 changed files with 193 additions and 181 deletions.
42 changes: 8 additions & 34 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@

buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
plugins {
id "scala"
id "maven-publish"
id "distribution"
id 'java-library'
}

subprojects {

apply plugin: "java"
apply plugin: "scala"
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'scala'

group 'org.mule.weave.native'
version nativeVersion
Expand All @@ -27,30 +25,6 @@ subprojects {
targetCompatibility = '11'
}


publishing {
publications.all {
pom.withXml {
asNode().dependencies.'*'.findAll() {
it.scope.text() == 'runtime' && project.configurations.compile.allDependencies.find { dep ->
dep.name == it.artifactId.text()
}
}.each { it.scope*.value = 'compile' }
}
}
publications {
mavenJava(MavenPublication) {
from components.java
}
}
repositories {
maven {
name "mule-releases"
url "https://repository-master.mulesoft.org/nexus/content/repositories/${project.version.endsWith('-SNAPSHOT') ? 'snapshots/' : 'releases/'}"
}
}
}

repositories {
// mavenLocal()
mavenCentral()
Expand All @@ -71,6 +45,6 @@ subprojects {


dependencies {
compile group: 'org.scala-lang', name: 'scala-library', version: scalaVersion
implementation group: 'org.scala-lang', name: 'scala-library', version: scalaVersion
}
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ ioVersion=1.0.0-SNAPSHOT
graalvmVersion=22.0.0.2
#Libaries
scalaTestVersion=3.0.1
scalaTestPluginVersion=0.25
scalaTestPluginVersion=0.32

org.gradle.jvmargs=-Dfile.encoding=utf-8
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
21 changes: 13 additions & 8 deletions native-cli-integration-tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,19 @@ plugins {


dependencies {
compile project(":native-cli")
testCompile group: 'org.scalatest', name: 'scalatest_2.12', version: scalaTestVersion
testCompile group: 'org.mule.weave', name: 'parser', version: weaveVersion
testCompile group: 'org.mule.weave', name: 'test-helpers', version: weaveVersion
testCompile "org.mule.weave:runtime:${weaveVersion}:test@zip"
testCompile "org.mule.weave:yaml-module:${weaveVersion}:test@zip"
testCompile 'commons-io:commons-io:2.11.0'
testRuntime 'org.pegdown:pegdown:1.6.0'
api project(":native-cli")
testImplementation group: 'org.scalatest', name: 'scalatest_2.12', version: scalaTestVersion
testImplementation group: 'org.mule.weave', name: 'parser', version: weaveVersion
testImplementation group: 'org.mule.weave', name: 'test-helpers', version: weaveVersion
testImplementation "org.mule.weave:runtime:${weaveVersion}:test@zip"
testImplementation "org.mule.weave:yaml-module:${weaveVersion}:test@zip"
testImplementation 'commons-io:commons-io:2.11.0'
testRuntimeOnly 'org.pegdown:pegdown:1.6.0'

testImplementation group: 'com.sun.mail', name: 'jakarta.mail', version: '1.6.4'
testImplementation group: 'xerces', name: 'xercesImpl', version: '2.12.1'
testImplementation group: 'xalan', name: 'xalan', version: '2.7.2'
testImplementation group: 'commons-beanutils', name: 'commons-beanutils', version: '1.9.4'
}

test.dependsOn(":native-cli:nativeCompile")
Loading

0 comments on commit 842bbe6

Please sign in to comment.