Giter VIP home page Giter VIP logo

gradle-sonar-example's Introduction

This is PAL's forked thingie with Gradle.

Usage (Eclipse)

  • File > Import ... (not open)
  • Gradle > Gradle Project
  • Select the folder containing build.gradle as "Project root directory" and accept all other defaults
  • Right click and run uon.sam.HelloWorld as a Java Application

Usage (Command Line)

  • run gradlew run and you'll see java build and a "Hello World"

  • Java builds because; plugins { ... id 'java' ... }

  • uon.sam.HelloWorld runs on run because of; ``` plugins { ... id 'application' }

     	mainClassName = 'uon.sam.HelloWorld'
     ```
    
  • run gradlew assemble and build/libs/gradle-sonar-example.jar will exist with all of your stuff in it.

  • download, unzip and launch Sonar

    • you'll want bin/ Win64 (or whatever) and it'll take a moment to start
    • when it's ready http://localhost:9000 should be a working page with an empty dashboard
      • you'll know it when you see it
      • there will be an example tutorial thing. follow it.
  • you'll be told to run something like gradlew sonarqube -Dsonar.host.url=http://localhost:9000 -Dsonar.login=12c9d1b865703e66e112315a2e3b62dcc9a26d6e

  • when it's done, look at the project

    • SonarQube runs because; plugins { ... id "org.sonarqube" version "2.6.2" ... }
    • it should have a 1-hour technical debt, 4 bad code smells and 6 lines of code

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.