Skip to content
Francisco Zuccalá edited this page Jan 31, 2018 · 3 revisions

The inhibitor-plugin has 4 tasks:

Configure Nexus Task

This task can be run using the command ./gradlew configureNexus. This task will configure the folder where the nexus is going to be saved, using your repository This task needs to be configured in the build.gradle. To do that:

  • Add the following lines to your build.gradle, after applying the inhibitor-plugin:
configureNexus{
    nexusRepository = "https://github.com/username/nexus-repository.git"
    [authenticated "username", "password or key"] // In case of being a private repository or need write access
    [nexusBranch = "master"] //By default is master
    [nexusVersion = '2.14.5=02'] // By default is 2.14.5-02. This changes for every inhibitor version
    [workspaceDir = "InhibitorWS"] // By default is InhibitorWS. This is the folder where is instaled inhibitor
    [inhibitorBranch = "master"] // By default is master. This is used to specify a diferent version of inhibitor
}

Configure Local Maven Repository Task

This task can be run using the command ./gradlew configureLocalMavenRepository. This task will configure the folder to use as a maven repository using your repository This task needs to be configured in the build.gradle. To do that:

  • Add the following lines to your build.gradle, after applying the inhibitor-plugin:
configureLocalMavenRepository{
    nexusRepository = "https://github.com/username/nexus-repository.git"
    [authenticated "username", "password or key"] // In case of being a private repository or need write access
    [nexusBranch = "master"] //By default is master
    [workspaceDir = "InhibitorWS"] // By default is InhibitorWS. This is the folder where is instaled inhibitor
    [inhibitorBranch = "master"] // By default is master. This is used to specify a diferent version of inhibitor
}

Save Nexus Task

This task can be run using the command ./gradlew saveNexus. This task will save all changes applied to the Nexus while it was UP This task needs to be configured in the build.gradle. To do that:

  • Add the following lines to your build.gradle, after applying the inhibitor-plugin:
saveNexus{
    nexusRepository = "https://github.com/username/nexus-repository.git"
    [authenticated "username", "password or key"] // In case of being a private repository or need write access
    [nexusBranch = "master"] //By default is master
    [workspaceDir = "InhibitorWS"] // By default is InhibitorWS. This is the folder where is instaled inhibitor
    [inhibitorBranch = "master"] // By default is master. This is used to specify a diferent version of inhibitor
}

Start Nexus Task

This task can be run using the command ./gradlew startNexus. This task will start Nexus This task needs to be configured in the build.gradle. To do that:

  • Add the following lines to your build.gradle, after applying the inhibitor-plugin:
startNexus{
    [nexusVersion = '2.14.5=02'] // By default is 2.14.5-02. This changes for every inhibitor version
    [workspaceDir = "InhibitorWS"] // By default is InhibitorWS. This is the folder where is instaled inhibitor
    [inhibitorBranch = "master"] // By default is master. This is used to specify a diferent version of inhibitor
}

Stop Nexus Task

This task can be run using the command ./gradlew stopNexus. This task will stop Nexus This task needs to be configured in the build.gradle. To do that:

  • Add the following lines to your build.gradle, after applying the inhibitor-plugin:
stopNexus{
    [nexusVersion = '2.14.5=02'] // By default is 2.14.5-02. This changes for every inhibitor version
    [workspaceDir = "InhibitorWS"] // By default is InhibitorWS. This is the folder where is instaled inhibitor
    [inhibitorBranch = "master"] // By default is master. This is used to specify a diferent version of inhibitor
}