Building Opencms 9.5.x from the sources

(Difference between revisions)
Jump to: navigation, search
(Checkout code)
 
(Checkout patched 9_0_1)
Line 1: Line 1:
 
<small>Note: this is work in progress</small>
 
<small>Note: this is work in progress</small>
  
1. Checkout the sources of the build_9_0_1 version:
+
1. Checkout the sources of the 9_0_1 branch<sup>1</sup>:
  
<source lang="bash">git clone https://github.com/alkacon/opencms-core.git -b build_9_0_1</source>
+
<source lang="bash">git clone https://github.com/alkacon/opencms-core.git -b branch_9_0_x</source>
  
2. Add property <tt>distribution</tt> to your <tt>gradle.properties</tt> file.
+
2. Execute the gradle <tt>bindist</tt> task:
  
[...]
+
<source lang="bash">gradle bindist</source>
version_number=9.0.1
+
'''distribution=9.0.1'''
+
java_target_version=1.6
+
[...]
+
  
If you forget this step, you'll get a:
 
 
> Could not find property 'distribution' on configuration ':compile'.
 
 
error message when executing <tt>gradle</tt>.
 
  
  
== Progress notes ==
 
Now I'm stuck with the next error:
 
  
  > Could not find method compile() for arguments [build_66vfsivvgoi9l7qtl267sk8h5p$_run_closure2_closure44@35764bef] on root project 'opencms-core'.
+
=== Notes ===
 +
 
 +
Checking out the official tag build_9_0_1 results in gradle failing with the following message:
 +
 
 +
  > Could not find property 'distribution' on configuration ':compile'.

Revision as of 09:27, 25 September 2014

Note: this is work in progress

1. Checkout the sources of the 9_0_1 branch1:

git clone https://github.com/alkacon/opencms-core.git -b branch_9_0_x

2. Execute the gradle bindist task:

gradle bindist



Notes

Checking out the official tag build_9_0_1 results in gradle failing with the following message:

> Could not find property 'distribution' on configuration ':compile'.
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox