Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update gradle disable leftShift method #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group 'com.arielcabib'
version '0.1.1'
version '0.1.2'

buildscript {
repositories {
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-all.zip
24 changes: 8 additions & 16 deletions src/main/java/com/arielcabib/plugin/gradle/rust/RustPlugin.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,25 @@ package com.arielcabib.plugin.gradle.rust

import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.tasks.Exec

/**
* Created by ariel on 17/05/15.
*/
class RustPlugin implements Plugin<Project> {
@Override
void apply(Project project) {
project.task('rustBuild') << {
println "Cargo building"
project.exec {
commandLine 'cargo', 'build'
}
project.tasks.create('rustBuild', Exec).configure {
commandLine 'cargo', 'build'
}

project.task('rustRun') << {
println "Cargo running"
project.exec {
standardInput System.in
commandLine 'cargo', 'run'
}
project.tasks.create('rustRun', Exec).configure {
standardInput System.in
commandLine 'cargo', 'run'
}

project.task('rustUpdate') << {
println "Cargo updating"
project.exec {
commandLine 'cargo', 'update'
}
project.tasks.create('rustUpdate', Exec).configure {
commandLine 'cargo', 'update'
}
}
}