freenowtech/phrase-maven-plugin


maven plugin to download phraseapp.com strings during compilation

Download


Step 1. Add the JitPack repository to your build file

Add it in your root settings.gradle at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url 'https://jitpack.io' }
		}
	}

Add it in your settings.gradle.kts at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url = uri("https://jitpack.io") }
		}
	}

Add to pom.xml

	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>

Add it in your build.sbt at the end of resolvers:

 
    resolvers += "jitpack" at "https://jitpack.io"
        
    

Add it in your project.clj at the end of repositories:

 
    :repositories [["jitpack" "https://jitpack.io"]]
        
    

Step 2. Add the dependency

	dependencies {
		implementation 'com.github.mytaxi:phrase-maven-plugin:phrase-plugin-2.1.0'
	}
	dependencies {
		implementation("com.github.mytaxi:phrase-maven-plugin:phrase-plugin-2.1.0")
	}
	<dependency>
	    <groupId>com.github.mytaxi</groupId>
	    <artifactId>phrase-maven-plugin</artifactId>
	    <version>phrase-plugin-2.1.0</version>
	</dependency>

                            
    libraryDependencies += "com.github.mytaxi" % "phrase-maven-plugin" % "phrase-plugin-2.1.0"
        
        

                            
    :dependencies [[com.github.mytaxi/phrase-maven-plugin "phrase-plugin-2.1.0"]]
        
        

Readme


Phrase Maven Plugin

Build Status Maven Central

What is this?

This projects contains a maven plugin to download PhraseApp translations due the build process from PhraseApp API v2.

What you have to do to start it with maven?

Create the bean PhraseAppSyncTask to run this job scheduled lately.

Configure the maven plugin

<plugin>
    <groupId>com.free-now.maven.plugins</groupId>
    <artifactId>phrase-plugin</artifactId>
    <version>2.x.x</version>
    <configuration>
        <authToken>YOUR_AUTH_TOKEN(REQUIRED)</authToken>
        <projectId>YOUR_PROJECT_ID(REQUIRED)</projectId>
        <tags>YOUR_TAGS_IN_THE_PROJECT(OPTIONAL)</tagName>
        
        <generatedResourcesFolderName>YOUR_GENERATED_RESOURCE_FOLDER(default:generated-resources/)</generatedResourcesFolderName>
        <messagesFolderName>YOUR_MESSAGES_FOLDERNAME(default:messages/)</messagesFolderName>
        <messageFilePrefix>YOUR_MESSAGE_FILE_PREFIX(default:messages_)</messageFilePrefix>
        <messageFilePostfix>YOUR_MESSAGE_FILE_POSTFIX(default:.properties)</messageFilePostfix> 
    </configuration>
    <executions>
        <execution>
            <goals>
                <goal>phrase</goal>
            </goals>
        </execution>
    </executions>
</plugin>