Skip to content

Minimal Native Gradle Build Project Setup and Configuration for all Platforms

Notifications You must be signed in to change notification settings

aaronalbers/minimal-native-gradle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minimal-native-gradle

Minimal Native Gradle Build Project Setup and Configuration for all Platforms

This project contains a simple C++ Hello World application and The Gradle Wrapper for 4.0.1. The project uses all the default configuration and is the absolute minimal setup I could think of for all platforms.

Windows

This configuration was tested on a fresh install of Windows 10 with the latest updates.

  1. Install Java Runtime Enviroment (JRE) 7 or higher. I recommend using Ninite to get Java 8.
  2. Install Visual C++ 2015 Build Tools.
  3. Download this minimal project or any other mproject that uses The Gradle Wrapper.
  4. Run "gradlew build" from the command line where the wrapper lives.

Mac OS X

This configuration was tested on a fresh install of Mac OS X Sierra 10.12 with the latest updates.

  1. Install Homebrew. Homebrew will automatically install the necessary toolchain and allow for easy install of the JRE.
  2. Run "brew cask install java" from the terminal to get Java. (Gradle can be installed directly via Hombrew but this is a minimal setup)
  3. Download this minimal project or any other project that uses The Gradle Wrapper.
  4. Run "./gradlew build" from the terminal where the wrapper lives.

Linux

This configuration was tested on a fresh install of Kubuntu 17.04 x64 with the latest updates.

  1. Run "java -version" to see if a supported version of Java is already installed (1.8.0_121 or higher). If not:
    1. Run "sudo apt-get install software-properties-common python-software-properties" to get "add-apt-repository" command.
    2. Run "sudo add-apt-repository ppa:webupd8team/java" to add the Java repository.
    3. Run "sudo apt-get update" to update the installer cache.
    4. Run "sudo apt-get install oracle-java8-installer" to install Java.
  2. Run "sudo apt-get install g++" to install the toolchain.
  3. Download this minimal project or any other project that uses The Gradle Wrapper.
  4. Run "./gradlew build" from the terminal where the wrapper lives.

About

Minimal Native Gradle Build Project Setup and Configuration for all Platforms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages