svn commit: r1864927 - in /ofbiz/ofbiz-framework: branches/release17.12/ branches/release17.12/gradle/ branches/release18.12/ branches/release18.12/gradle/ trunk/ trunk/gradle/

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1864927 - in /ofbiz/ofbiz-framework: branches/release17.12/ branches/release17.12/gradle/ branches/release18.12/ branches/release18.12/gradle/ trunk/ trunk/gradle/

jleroux@apache.org
Author: jleroux
Date: Sun Aug 11 12:56:38 2019
New Revision: 1864927

URL: http://svn.apache.org/viewvc?rev=1864927&view=rev
Log:
Implemented: Remove the Gradle wrapper from our release packages and add a step
to our build notes
(OFBIZ-10145)

Adds the Windows init-gradle-wrapper scripts (both .bat et .ps1) in all
concerned branch (trunk, R18, R17)

These are very simple because I believe (almost?) nobody is using a Windows
server to deploy OFBiz in production. So they will be only used in development
environment. In case deployment in production is needed they supply a base to
work on...

The init-gradle-wrapper.ps1 scripts use only HTTP and not HTTPS because it's
very difficult to handle all the issues related with different versions of
Powershell and .net in different versions of Windows. Better to let that to
deployment in case it's really needed...

Added:
    ofbiz/ofbiz-framework/branches/release17.12/gradle/init-gradle-wrapper.ps1
    ofbiz/ofbiz-framework/branches/release17.12/init-gradle-wrapper.bat   (with props)
    ofbiz/ofbiz-framework/branches/release18.12/gradle/init-gradle-wrapper.ps1
    ofbiz/ofbiz-framework/branches/release18.12/init-gradle-wrapper.bat   (with props)
    ofbiz/ofbiz-framework/trunk/gradle/init-gradle-wrapper.ps1
    ofbiz/ofbiz-framework/trunk/init-gradle-wrapper.bat   (with props)

Added: ofbiz/ofbiz-framework/branches/release17.12/gradle/init-gradle-wrapper.ps1
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/branches/release17.12/gradle/init-gradle-wrapper.ps1?rev=1864927&view=auto
==============================================================================
--- ofbiz/ofbiz-framework/branches/release17.12/gradle/init-gradle-wrapper.ps1 (added)
+++ ofbiz/ofbiz-framework/branches/release17.12/gradle/init-gradle-wrapper.ps1 Sun Aug 11 12:56:38 2019
@@ -0,0 +1,28 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+if ((Test-Path -Path ((Get-Item -Path ".\").FullName + "\gradle\wrapper\gradle-wrapper.jar")) -and (Test-Path -Path ((Get-Item -Path ".\").FullName + "\gradle\wrapper\gradle-wrapper.properties"))) {
+    Write-Host "The Gradle Wrapper has been already downloaded.";
+    exit
+}
+
+# This uses  PowerShell Invoke-WebRequest command (aliased as wget here)
+# HTTPS is not used because it gets complicated with Powershell and .Net framework versions depending on Windows versions
+# Anyway I believe this should be only used in dev environment
+wget -outf gradle\wrapper\gradle-wrapper.jar http://dl.bintray.com/apacheofbiz/GradleWrapper/v3.2.1/gradle-wrapper.jar
+wget -outf gradle\wrapper\gradle-wrapper.properties http://dl.bintray.com/apacheofbiz/GradleWrapper/v3.2.1/gradle-wrapper.properties
+

Added: ofbiz/ofbiz-framework/branches/release17.12/init-gradle-wrapper.bat
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/branches/release17.12/init-gradle-wrapper.bat?rev=1864927&view=auto
==============================================================================
--- ofbiz/ofbiz-framework/branches/release17.12/init-gradle-wrapper.bat (added)
+++ ofbiz/ofbiz-framework/branches/release17.12/init-gradle-wrapper.bat Sun Aug 11 12:56:38 2019
@@ -0,0 +1,23 @@
+@echo off
+rem #####################################################################
+rem Licensed to the Apache Software Foundation (ASF) under one
+rem or more contributor license agreements.  See the NOTICE file
+rem distributed with this work for additional information
+rem regarding copyright ownership.  The ASF licenses this file
+rem to you under the Apache License, Version 2.0 (the
+rem "License"); you may not use this file except in compliance
+rem with the License.  You may obtain a copy of the License at
+rem
+rem http://www.apache.org/licenses/LICENSE-2.0
+rem
+rem Unless required by applicable law or agreed to in writing,
+rem software distributed under the License is distributed on an
+rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+rem KIND, either express or implied.  See the License for the
+rem specific language governing permissions and limitations
+rem under the License.
+rem #####################################################################
+rem interactive DOS version of mergefromtrunk.sh.
+rem to use : launch and pass the trunk version number to merge in release
+
+Powershell.exe -executionpolicy remotesigned -File  gradle\init-gradle-wrapper.ps1
\ No newline at end of file

Propchange: ofbiz/ofbiz-framework/branches/release17.12/init-gradle-wrapper.bat
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/ofbiz-framework/branches/release17.12/init-gradle-wrapper.bat
------------------------------------------------------------------------------
    svn:executable = *

Propchange: ofbiz/ofbiz-framework/branches/release17.12/init-gradle-wrapper.bat
------------------------------------------------------------------------------
    svn:keywords = Date Rev Author URL Id

Propchange: ofbiz/ofbiz-framework/branches/release17.12/init-gradle-wrapper.bat
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: ofbiz/ofbiz-framework/branches/release18.12/gradle/init-gradle-wrapper.ps1
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/branches/release18.12/gradle/init-gradle-wrapper.ps1?rev=1864927&view=auto
==============================================================================
--- ofbiz/ofbiz-framework/branches/release18.12/gradle/init-gradle-wrapper.ps1 (added)
+++ ofbiz/ofbiz-framework/branches/release18.12/gradle/init-gradle-wrapper.ps1 Sun Aug 11 12:56:38 2019
@@ -0,0 +1,28 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+if ((Test-Path -Path ((Get-Item -Path ".\").FullName + "\gradle\wrapper\gradle-wrapper.jar")) -and (Test-Path -Path ((Get-Item -Path ".\").FullName + "\gradle\wrapper\gradle-wrapper.properties"))) {
+    Write-Host "The Gradle Wrapper has been already downloaded.";
+    exit
+}
+
+# This uses  PowerShell Invoke-WebRequest command (aliased as wget here)
+# HTTPS is not used because it gets complicated with Powershell and .Net framework versions
+# Anyway I believe this should be only used in dev environment
+wget -outf gradle\wrapper\gradle-wrapper.jar http://dl.bintray.com/apacheofbiz/GradleWrapper/v5.0.0/gradle-wrapper.jar
+wget -outf gradle\wrapper\gradle-wrapper.properties http://dl.bintray.com/apacheofbiz/GradleWrapper/v5.0.0/gradle-wrapper.properties
+

Added: ofbiz/ofbiz-framework/branches/release18.12/init-gradle-wrapper.bat
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/branches/release18.12/init-gradle-wrapper.bat?rev=1864927&view=auto
==============================================================================
--- ofbiz/ofbiz-framework/branches/release18.12/init-gradle-wrapper.bat (added)
+++ ofbiz/ofbiz-framework/branches/release18.12/init-gradle-wrapper.bat Sun Aug 11 12:56:38 2019
@@ -0,0 +1,23 @@
+@echo off
+rem #####################################################################
+rem Licensed to the Apache Software Foundation (ASF) under one
+rem or more contributor license agreements.  See the NOTICE file
+rem distributed with this work for additional information
+rem regarding copyright ownership.  The ASF licenses this file
+rem to you under the Apache License, Version 2.0 (the
+rem "License"); you may not use this file except in compliance
+rem with the License.  You may obtain a copy of the License at
+rem
+rem http://www.apache.org/licenses/LICENSE-2.0
+rem
+rem Unless required by applicable law or agreed to in writing,
+rem software distributed under the License is distributed on an
+rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+rem KIND, either express or implied.  See the License for the
+rem specific language governing permissions and limitations
+rem under the License.
+rem #####################################################################
+rem interactive DOS version of mergefromtrunk.sh.
+rem to use : launch and pass the trunk version number to merge in release
+
+Powershell.exe -executionpolicy remotesigned -File  gradle\init-gradle-wrapper.ps1
\ No newline at end of file

Propchange: ofbiz/ofbiz-framework/branches/release18.12/init-gradle-wrapper.bat
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/ofbiz-framework/branches/release18.12/init-gradle-wrapper.bat
------------------------------------------------------------------------------
    svn:executable = *

Propchange: ofbiz/ofbiz-framework/branches/release18.12/init-gradle-wrapper.bat
------------------------------------------------------------------------------
    svn:keywords = Date Rev Author URL Id

Propchange: ofbiz/ofbiz-framework/branches/release18.12/init-gradle-wrapper.bat
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: ofbiz/ofbiz-framework/trunk/gradle/init-gradle-wrapper.ps1
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/gradle/init-gradle-wrapper.ps1?rev=1864927&view=auto
==============================================================================
--- ofbiz/ofbiz-framework/trunk/gradle/init-gradle-wrapper.ps1 (added)
+++ ofbiz/ofbiz-framework/trunk/gradle/init-gradle-wrapper.ps1 Sun Aug 11 12:56:38 2019
@@ -0,0 +1,28 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+if ((Test-Path -Path ((Get-Item -Path ".\").FullName + "\gradle\wrapper\gradle-wrapper.jar")) -and (Test-Path -Path ((Get-Item -Path ".\").FullName + "\gradle\wrapper\gradle-wrapper.properties"))) {
+    Write-Host "The Gradle Wrapper has been already downloaded.";
+    exit
+}
+
+# This uses  PowerShell Invoke-WebRequest command (aliased as wget here)
+# HTTPS is not used because it gets complicated with Powershell and .Net framework versions
+# Anyway I believe this should be only used in dev environment
+wget -outf gradle\wrapper\gradle-wrapper.jar http://dl.bintray.com/apacheofbiz/GradleWrapper/v5.0.0/gradle-wrapper.jar
+wget -outf gradle\wrapper\gradle-wrapper.properties http://dl.bintray.com/apacheofbiz/GradleWrapper/v5.0.0/gradle-wrapper.properties
+

Added: ofbiz/ofbiz-framework/trunk/init-gradle-wrapper.bat
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/init-gradle-wrapper.bat?rev=1864927&view=auto
==============================================================================
--- ofbiz/ofbiz-framework/trunk/init-gradle-wrapper.bat (added)
+++ ofbiz/ofbiz-framework/trunk/init-gradle-wrapper.bat Sun Aug 11 12:56:38 2019
@@ -0,0 +1,23 @@
+@echo off
+rem #####################################################################
+rem Licensed to the Apache Software Foundation (ASF) under one
+rem or more contributor license agreements.  See the NOTICE file
+rem distributed with this work for additional information
+rem regarding copyright ownership.  The ASF licenses this file
+rem to you under the Apache License, Version 2.0 (the
+rem "License"); you may not use this file except in compliance
+rem with the License.  You may obtain a copy of the License at
+rem
+rem http://www.apache.org/licenses/LICENSE-2.0
+rem
+rem Unless required by applicable law or agreed to in writing,
+rem software distributed under the License is distributed on an
+rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+rem KIND, either express or implied.  See the License for the
+rem specific language governing permissions and limitations
+rem under the License.
+rem #####################################################################
+rem interactive DOS version of mergefromtrunk.sh.
+rem to use : launch and pass the trunk version number to merge in release
+
+Powershell.exe -executionpolicy remotesigned -File  gradle\init-gradle-wrapper.ps1
\ No newline at end of file

Propchange: ofbiz/ofbiz-framework/trunk/init-gradle-wrapper.bat
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/ofbiz-framework/trunk/init-gradle-wrapper.bat
------------------------------------------------------------------------------
    svn:executable = *

Propchange: ofbiz/ofbiz-framework/trunk/init-gradle-wrapper.bat
------------------------------------------------------------------------------
    svn:keywords = Date Rev Author URL Id

Propchange: ofbiz/ofbiz-framework/trunk/init-gradle-wrapper.bat
------------------------------------------------------------------------------
    svn:mime-type = text/plain