Skip to content

Commit e45f478

Browse files
committed
More accurate AEM6 jars
Fixes GH-41
1 parent 75d2ba9 commit e45f478

File tree

9 files changed

+70
-37
lines changed

9 files changed

+70
-37
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*.iml
55
*.ipr
66
*.iws
7+
*.jar
78
.gradle
89
.gradletasknamecache
910
.project

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Moreover, by doing a continuous stream, we avoid the latency issues. Depending o
1616

1717
# Runtime Dependencies
1818

19-
* AEM/CQ v5.6.1
19+
* AEM/CQ v6.1
2020
* To run Grabbit in your AEM/CQ instance, **you need to install a Fragment Bundle once per instance. It can be found [here](https://bintray.com/artifact/download/twcable/aem/dependencies/Sun-Misc-Fragment-Bundle-1.0.0.zip)**
2121

2222
# Building #
@@ -47,6 +47,16 @@ brew link --force --overwrite protobuf241
4747

4848
_For both Windows and Mac : To verify that installation was successful, `protoc --version` should display `2.4.1`_
4949

50+
### Adding AEM dependent libraries ###
51+
52+
#### Get workflow-console jar from AEM instance
53+
54+
1. Go to http://localhost:4502/system/console/bundles
55+
2. Search for workflow-console and expand bundle when found.
56+
3. Notice `Bundle Location` and copy the path after jcrinstall: (/libs/cq/platform/install/cq-workflow-console-5.8.2.jar)
57+
4. From the top project directory, simply use the Sling download component to grab the data. For example:
58+
`curl -u admin:admin -o cq-workflow-console-5.8.2.jar "http://localhost:4502/crx/de/download.jsp?path=/libs/cq/platform/install/cq-workflow-console-5.8.2.jar/jcr:content/jcr:data"`
59+
5060
# Running Grabbit #
5161

5262
[This] (grabbit.sh) shell script can be used to initiate grabbit jobs for a given Grabbit configuration and to check the status of those jobs.

RELEASE_NOTES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# RELEASE NOTES
22

3+
## 4.0.0
4+
5+
* Updated for AEM 6.1
6+
37
## 3.0.0
48

59
* Added "excludePath" feature ( GH-23 )

build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,14 @@ allprojects {
3333
}
3434

3535
//Provides all Adobe AEM specific repos (like cq-workflow-console)
36+
//May no longer be needed since latest jar files are not on the public Adobe repo
3637
maven {
3738
url "http://repo.adobe.com/nexus/content/groups/public"
3839
}
40+
41+
// hack to allow getting to a working version of AEM 6.1 workflow-console jar
42+
// without running afoul of licensing restrictions
43+
flatDir { dirs rootProject.projectDir }
3944
}
4045
}
4146

grabbit/build.gradle

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ jar.manifest {
7070
instruction 'Import-Package', 'org.springframework.aop.scope; version="[3.1,4.0)"'
7171
instruction 'Import-Package', 'org.springframework.scheduling.concurrent; version="[3.1,4.0)"'
7272
instruction 'Import-Package', "org.aopalliance.aop;version=1.0.0"
73+
instruction 'Import-Package', "sun.misc"
7374
instruction 'Import-Package', '*'
7475

7576

@@ -90,17 +91,22 @@ configurations.cq_package {
9091
exclude group: 'ch.qos.logback', module: 'logback-classic'
9192
exclude group: 'ch.qos.logback', module: 'logback-core'
9293

93-
// excluding Joda Time too as AEM5.6 provides its own in com.day.commons.osgi.wrapper.joda-time
94+
// excluding Joda Time too as AEM provides its own in com.day.commons.osgi.wrapper.joda-time
9495
exclude group: 'joda-time', module: 'joda-time'
95-
96+
9697
exclude group: 'com.google.code.findbugs', module: 'jsr305'
9798

9899
exclude group: 'com.day.cq.workflow', module: 'cq-workflow-console'
99100

100101
exclude group: 'org.apache.felix', module: 'org.apache.felix.scr.annotations'
101102

102103
exclude group: 'org.apache.commons', module: 'commons-lang3'
103-
exclude group: 'org.apache.commons', module: 'commons-lang'
104+
105+
// 6.x exclude bundles
106+
exclude group: 'com.google.guava', module: 'guava'
107+
exclude group: 'org.apache.httpcomponents', module: 'httpclient-osgi'
108+
exclude group: 'org.apache.httpcomponents', module: 'httpcore-osgi'
109+
exclude module: 'cq-workflow-console'
104110
}
105111

106112
bundle.installPath = '/apps/grabbit/install/${nativeStartLevel}'

gradle.properties

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,39 +11,38 @@ version = 3.0.0
1111
cglib_nodep_version = 2.2.2
1212
commons_collections_version = 3.2.1
1313
commons_io_version = 1.4
14-
commons_lang_version = 3.0.1
14+
commons_lang_version = 3.3.2
1515
commons_text_version = 1.1.8
16-
cq_version_workflow_console = 5.6.6
16+
cq_workflow_console_version = 5.8.2
1717
felix_osgi_version = 1.4.0
1818
gradle_plugins_version = 2.1.0
1919
granite_version = 5.12.2
2020
groovy_version = 2.3.6
2121
guava_version = 15.0
22+
httpcomponents_version = 4.3.4
2223
httpcomponents_client_version = 4.3.6
2324
httpcomponents_core_version = 4.3.2
2425
jackalope_version = 2.0.0
2526
jackrabbit_ocm_version = 1.5.3
26-
jackrabbit_version = 2.6.2
27+
jackrabbit_version = 2.10.0
2728
jcr_version = 2.0
2829
jms_version = 3.1.1
29-
joda_time_version = 1.6.2
3030
jsr305_version = 2.0.0
3131
logback_version = 1.0.4
3232
objenesis_version = 2.1
3333
protobuf_gradle_plugin_version = 0.9.1
3434
scr_annotations_version = 1.7.0
3535
servicemix_protobuf_java_version = 2.4.1_1
3636
servlet_api_version = 2.5
37-
slf4j_version = 1.6.6
38-
sling_api_version = 2.4.0
37+
sling_api_version = 2.9.0
3938
sling_commons_testing_version = 2.0.12
40-
sling_commons_version = 2.1.0
39+
sling_commons_version = 2.2.0
4140
sling_event_version = 3.1.4
42-
sling_jcr_api_version = 2.1.2
41+
sling_jcr_api_version = 2.5.0
42+
sling_jcr_resource_version = 2.5.0
4343
sling_resourceresolver_version = 1.0.6
4444
sling_rewriter_version = 1.0.4
4545
spock_version = 0.7-groovy-2.0
4646
spring_batch_version = 2.2.7.RELEASE
4747
spring_osgi_version = 2.0.0.M1
48-
spring_version = 3.1.4.RELEASE
4948
woodstox_version = 4.2.0

gradle/dependencies.gradle

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
ext.spring_version = "3.2.9.RELEASE_1"
2+
13
//noinspection GroovyAssignabilityCheck
24
dependencies {
35
// Library for Groovy
@@ -6,32 +8,36 @@ dependencies {
68
// Used as part of the build to create the OSGI-INF/serviceComponents.xml file
79
compile "org.apache.felix:org.apache.felix.scr.annotations:${scr_annotations_version}"
810

9-
compile "com.day.cq.workflow:cq-workflow-console:${cq_version_workflow_console}"
10-
1111
//Google libraries
1212
compile "com.google.guava:guava:${guava_version}"
1313

1414
//For annotations like @Nonnull, etc.
1515
compile "com.google.code.findbugs:jsr305:${jsr305_version}"
1616

17+
// Adobe AEM API jar files
18+
compile ":cq-workflow-console:${cq_workflow_console_version}" // install into the top-level dir of project
19+
1720
// Apache Sling libraries
1821
compile "org.apache.sling:org.apache.sling.api:${sling_api_version}"
19-
compile "org.apache.sling:org.apache.sling.jcr.api:${sling_commons_version}"
22+
// compile "org.apache.sling:org.apache.sling.jcr.api:${sling_commons_version}"
23+
compile "org.apache.sling:org.apache.sling.jcr.resource:${sling_jcr_resource_version}"
2024

2125
// Apache Felix libraries
2226
compile "org.apache.felix:org.osgi.core:${felix_osgi_version}"
2327
compile "org.apache.felix:org.osgi.compendium:${felix_osgi_version}"
2428

25-
compile "joda-time:joda-time:${joda_time_version}"
29+
compile "joda-time:joda-time:1.6.2"
2630

2731
// Need the "javax.jms" library for Spring JMS
2832
compile "org.glassfish:javax.jms:${jms_version}"
2933

3034
// Working with the JCR
3135
compile "javax.jcr:jcr:${jcr_version}"
3236
compile "org.apache.jackrabbit:jackrabbit-jcr-commons:${jackrabbit_version}"
37+
compile "org.apache.sling:org.apache.sling.jcr.api:${sling_commons_version}"
3338

3439
// Logging
40+
def slf4j_version = "1.7.6"
3541
compile "org.slf4j:slf4j-api:${slf4j_version}"
3642
compile "org.slf4j:jcl-over-slf4j:${slf4j_version}"
3743
runtime "ch.qos.logback:logback-classic:${logback_version}"
@@ -42,17 +48,7 @@ dependencies {
4248
// Servlet/JSP libraries
4349
compile "javax.servlet:servlet-api:${servlet_api_version}"
4450

45-
// Spring libraries
46-
compile "org.springframework.osgi:spring-osgi-core:${spring_osgi_version}"
47-
compile "org.springframework:org.springframework.context:${spring_version}"
48-
compile "org.springframework:spring-oxm:${spring_version}"
49-
compile "org.springframework:org.springframework.jms:${spring_version}"
50-
compile "org.springframework:org.springframework.jdbc:${spring_version}"
51-
compile "org.springframework.osgi:spring-osgi-extender:${spring_osgi_version}"
52-
53-
//This version of Spring Batch brings in transitive dependencies of Spring 3.2.9
54-
//Though, the Manifest for spring-batch-core and spring-batch-infrastructure
55-
//Has a range of [3.1.2, 4.0.0). Thus, excluding these transitive dependencies
51+
// This version of Spring Batch brings in non-OSGi transitive dependencies, so they need to be overrriden
5652
compile "org.springframework.batch:spring-batch-core:${spring_batch_version}", {
5753
exclude group: "org.springframework", module: "spring-core"
5854
exclude group: "org.springframework", module: "spring-beans"
@@ -63,6 +59,23 @@ dependencies {
6359
exclude group: "com.thoughtworks.xstream", module: "xstream"
6460
}
6561

62+
// Spring libraries
63+
compile "org.apache.servicemix.bundles:org.apache.servicemix.bundles.spring-aop:${spring_version}"
64+
compile "org.apache.servicemix.bundles:org.apache.servicemix.bundles.spring-beans:${spring_version}"
65+
compile "org.apache.servicemix.bundles:org.apache.servicemix.bundles.spring-core:${spring_version}"
66+
compile "org.apache.servicemix.bundles:org.apache.servicemix.bundles.spring-context:${spring_version}"
67+
compile "org.apache.servicemix.bundles:org.apache.servicemix.bundles.spring-tx:${spring_version}"
68+
compile "org.apache.servicemix.bundles:org.apache.servicemix.bundles.spring-expression:${spring_version}"
69+
compile "org.aopalliance:com.springsource.org.aopalliance:1.0.0"
70+
compile "org.springframework.osgi:spring-osgi-extender:${spring_osgi_version}", {
71+
exclude group: "org.springframework", module: "org.springframework.core"
72+
exclude group: "org.springframework", module: "org.springframework.context"
73+
exclude group: "org.springframework", module: "org.springframework.beans"
74+
exclude group: "org.springframework", module: "org.springframework.asm"
75+
exclude group: "org.springframework", module: "org.springframework.expression"
76+
exclude group: "org.springframework", module: "org.springframework.aop"
77+
}
78+
6679
compile "org.apache.commons:commons-lang3:${commons_lang_version}"
6780
compile "commons-io:commons-io:${commons_io_version}"
6881

@@ -83,7 +96,6 @@ dependencies {
8396
}
8497

8598
compile "org.apache.servicemix.bundles:org.apache.servicemix.bundles.protobuf-java:${servicemix_protobuf_java_version}"
86-
8799
//For cleaner mocking
88100
testCompile "org.objenesis:objenesis:${objenesis_version}"
89101

testutils/build.gradle

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ dependencies {
1212
compile "org.codehaus.groovy:groovy-all:${groovy_version}"
1313
compile "org.spockframework:spock-core:${spock_version}"
1414

15-
compile "com.adobe.granite:com.adobe.granite.replication.core:${granite_version}"
16-
1715
compile "javax.servlet:servlet-api:${servlet_api_version}"
1816

1917
compile "org.apache.sling:org.apache.sling.commons.testing:${sling_commons_testing_version}", {
@@ -24,11 +22,9 @@ dependencies {
2422
exclude group: 'org.jmock', module: 'jmock-junit4'
2523
exclude group: 'rhino', module: 'js'
2624
}
27-
compile "com.day.cq.wcm:cq-wcm-api:${cq_version}"
28-
compile "com.day.cq:cq-commons:${cq_version}", {
29-
exclude group: 'org.apache.commons', module: 'commons-email'
30-
}
31-
compile "com.day.cq:cq-tagging:${cq_version}"
25+
26+
compile ":cq-workflow-console:${cq_workflow_console_version}"
27+
3228
compile "org.slf4j:slf4j-api:${slf4j_version}"
3329
compile "org.mockito:mockito-all:${mockito_version}"
3430
compile "org.apache.commons:commons-lang3:${commons_lang_version}"

testutils/gradle/testing.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ dependencies {
2323
testCompile "org.spockframework:spock-core:${spock_version}"
2424
testCompile "org.spockframework:spock-spring:${spock_version}"
2525
testCompile "org.springframework.batch:spring-batch-test:${spring_batch_version}"
26-
testCompile "org.springframework:spring-test:${spring_version}"
26+
testCompile "org.springframework:spring-test:3.2.9.RELEASE"
2727

2828

2929
testCompile "com.twcable.jackalope:jackalope:${jackalope_version}"

0 commit comments

Comments
 (0)