Skip to content

alclabs/addon-gradle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ALClabs-gradle

This project contains the shared part of the gradle build file used to simplify building and deploying addons for WebCtrl.

To use this, create a gradle project in your IDE and include the following in the header of your gradle build file (before your project's info and dependencies)

        configurations { gradleScript }
        repositories { 
		    // Used for gradle 2 and before
            // maven { url: 'http://repo.alcshare.com'} 
			// New for gradle 7 and higher
			maven { url 'http://repo.alcshare.com' allowInsecureProtocol=true } 
        }
        dependencies { 
            gradleScript group: 'com.alcshare', name: 'addon-gradle', ext: 'gradle', version: '2.0.1' 
        }
        apply from: configurations.gradleScript.resolve().iterator().next()

This shared gradle file includes:

  • plugin war
  • plugin groovy (which includes java)
  • plugin idea
  • plugin eclipse
  • sets up maven central as a repo
  • configures the war task to use an all lower case name without a version in the war name
  • wrapper task to generate a gradle wrapper
  • deploy task to deploy an exploded war to your WebCTRL webapp directory
  • gradle GUI launcher

If you run gradlew for a project using this shared file without any parameters, it will launch the gradle gui.

The first time you run the deploy task, it will prompt you for the location of your WebCTRL installation, so it can deploy your web app correctly.