Skip to content

Commit

Permalink
Updates for release series 3.0.0, including build.gradle updates for …
Browse files Browse the repository at this point in the history
…Gradle 7
  • Loading branch information
jonesde committed May 31, 2022
1 parent c4c581b commit ae952c7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
32 changes: 17 additions & 15 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

apply plugin: 'groovy'

sourceCompatibility = '1.8'
def componentNode = parseComponent(project)
version = componentNode.'@version'
def jarBaseName = 'moqui-orientdb'
Expand All @@ -24,8 +23,11 @@ def frameworkDir = file(moquiDir.absolutePath + '/framework')
// to run use "gradle dependencyUpdates"
apply plugin: 'com.github.ben-manes.versions'
buildscript {
repositories { jcenter() }
dependencies { classpath 'com.github.ben-manes:gradle-versions-plugin:0.27.0' }
repositories {
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies { classpath 'com.github.ben-manes:gradle-versions-plugin:0.42.0' }
}
dependencyUpdates.resolutionStrategy = { componentSelection { rules -> rules.all { ComponentSelection selection ->
boolean rejected = ['alpha', 'beta', 'rc', 'cr', 'm', 'pr'].any { qualifier -> selection.candidate.version ==~ /(?i).*[.\d-]${qualifier}[.\d-]*/ }
Expand All @@ -34,44 +36,44 @@ dependencyUpdates.resolutionStrategy = { componentSelection { rules -> rules.all

repositories {
flatDir name: 'localLib', dirs: frameworkDir.absolutePath + '/lib'
jcenter()
mavenCentral()
}

// Log4J has annotation processors, disable to avoid warning
tasks.withType(JavaCompile) { options.compilerArgs << "-proc:none" }
tasks.withType(GroovyCompile) { options.compilerArgs << "-proc:none" }

dependencies {
compile project(':framework')
implementation project(':framework')

// OrientDB - Apache 2.0
compile ('com.orientechnologies:orientdb-core:3.0.26') {
implementation ('com.orientechnologies:orientdb-core:3.0.26') {
exclude group: 'javax.activation'
}
compile ('com.orientechnologies:orientdb-client:3.0.26') {
implementation ('com.orientechnologies:orientdb-client:3.0.26') {
exclude group: 'javax.activation'
}
// orientdb-graphdb has a bunch of dependencies that conflict with other things, needed included below or elsewhere
compile module('com.orientechnologies:orientdb-graphdb:3.0.26') {
implementation module('com.orientechnologies:orientdb-graphdb:3.0.26') {
exclude group: 'com.tinkerpop.gremlin'
exclude group: 'com.orientechnologies'
// exclude group: 'com.fasterxml.jackson.core'
exclude group: 'commons-beanutils' // includes commons-beanutils-core, commons-beanutils included elsewhere
}
// needed? compile 'com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.10.1'

compile('com.orientechnologies:orientdb-server:3.0.26') {
implementation ('com.orientechnologies:orientdb-server:3.0.26') {
exclude group: 'javax.mail'
exclude group: 'javax.activation'
exclude group: 'javax.xml.bind'
exclude group: 'com.sun.xml.bind'
}
// this is a mess: blueprints-core depends on all sorts of things and some required dependencies have conflicts
compile module('com.tinkerpop.blueprints:blueprints-core:2.6.0')
compile 'org.codehaus.jettison:jettison:1.4.0'
compile 'com.carrotsearch:hppc:0.8.1'
compile 'com.tinkerpop.gremlin:gremlin-java:2.6.0' // BSD
compile('com.tinkerpop.gremlin:gremlin-groovy:2.6.0') {
implementation module('com.tinkerpop.blueprints:blueprints-core:2.6.0')
implementation 'org.codehaus.jettison:jettison:1.4.0'
implementation 'com.carrotsearch:hppc:0.8.1'
implementation 'com.tinkerpop.gremlin:gremlin-java:2.6.0' // BSD
implementation ('com.tinkerpop.gremlin:gremlin-groovy:2.6.0') {
exclude group: 'org.codehaus.groovy'
exclude group: 'org.apache.ant'
exclude group: 'org.apache.ivy'
Expand All @@ -95,7 +97,7 @@ jar {
archiveBaseName = jarBaseName
}
task copyDependencies { doLast {
copy { from (configurations.runtime - project(':framework').configurations.runtime - project(':framework').jar.archivePath)
copy { from (configurations.runtimeClasspath - project(':framework').configurations.runtimeClasspath - project(':framework').jar.archivePath)
into file(projectDir.absolutePath + '/lib') }
} }
copyDependencies.dependsOn cleanLib
Expand Down
2 changes: 1 addition & 1 deletion component.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<component xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://moqui.org/xsd/moqui-conf-2.1.xsd"
<component xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://moqui.org/xsd/moqui-conf-3.xsd"
name="moqui-orientdb" version="1.0.4"/>

0 comments on commit ae952c7

Please sign in to comment.