Giter Club home page Giter Club logo

gumtreediff-examples's Introduction

GumTreeDiff API use examples

This repository

This small repository contains examples on how to use a code differencing tool GumTreeDiff (GTD) from Java source code through APIs.

Folder gumtreediff-api-examples-maven contains a sample maven project that runs API use examples.

Prerequisites

Java

SDK version 11+ (these projects are developed with java-11-openjdk-amd64).

Maven build setup

These projects are built with maven version 3.6.3.

Before building and running any of the projects for the first time please configure the maven workflow for GTD:

Step 0

If you do not yet have a GitHub account, register there.

Step 1

Go to your account and generate a personal access token (if you already have it, make sure it has all necessary permissions - see below):

  1. Follow the instructions here

  2. In step 6 of the above instructions set the token name to github-GTD or any other of your choice

  3. In step 7 of the above instructions set at least the following permissions: repo, read:packages

Step 2

Configure maven to authenticate GithubPackages as a valid package source:

  1. Full instructions are available here, section Authenticating to GitHub Packages/Authenticating with a personal access token, but the relevant steps are:

  2. Create or edit the ~/.m2/settings.xml from the template provided in the above instructions

  3. Update repository and server sections of the settings.xml to the following values:

<repository>
  <id>github</id>
  <name>GitHub GumTreeDiff Apache Maven Packages</name>
  <url>https://maven.pkg.github.com/gumtreediff/gumtree</url>
  <releases><enabled>true</enabled></releases>
  <snapshots><enabled>true</enabled></snapshots>
</repository>
<server>
  <id>github</id>
  <username>HERE_YOUR_GITHUB_USERNAME</username>
  <password>HERE_YOUR_GITHUB_PERSONAL_ACCESS_TOKEN</password>
</server>

IDE

The projects are developed in IntelliJ IDEA 2020.3.3 (Community Edition), so there are various build and run configurations available for each project in respective gumtreediff-examples/PROJECTNAME/.idea/runConfigurations/ folders.

gumtreediff-examples's People

Contributors

s0nata avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.