From 7f9762db633dde22b801e365d4ae02d50acaa6bf Mon Sep 17 00:00:00 2001 From: Inderjeet Singh Date: Tue, 12 Apr 2011 16:16:35 +0000 Subject: [PATCH] Updated Maven dependencies and license notice in ProtoTypeAdapter. --- proto/pom.xml | 84 ++++--------------- .../gson/protobuf/ProtoTypeAdapter.java | 16 +++- 2 files changed, 33 insertions(+), 67 deletions(-) diff --git a/proto/pom.xml b/proto/pom.xml index ad40111a..9bf44c56 100644 --- a/proto/pom.xml +++ b/proto/pom.xml @@ -7,7 +7,7 @@ com.google.code.gson proto jar - 0.1 + 0.5 Gson Protobuf Support Gson support for Protobufs @@ -52,7 +52,7 @@ com.google.code.gson gson - 1.6 + 1.7-SNAPSHOT compile @@ -105,6 +105,7 @@ org.apache.maven.plugins maven-compiler-plugin + 2.3.2 1.6 1.6 @@ -113,12 +114,12 @@ org.apache.maven.plugins maven-eclipse-plugin + 2.8 true true ../eclipse-ws file:///${basedir}/../lib/gson-formatting-styles.xml - 1.5 @@ -136,24 +137,21 @@ - org.mortbay.jetty - maven-jetty-plugin + org.apache.maven.plugins + maven-release-plugin + 2.1 - 10 + -DenableCiProfile=true + https://google-gson.googlecode.com/svn/tags/ - org.apache.maven.plugins - maven-jxr-plugin - - - org.apache.maven.plugins maven-source-plugin + 2.1.2 attach-sources - verify jar @@ -161,69 +159,23 @@ - org.apache.maven.plugins maven-javadoc-plugin - - src/main/resources/javadoc-descriptor.xml - - http://java.sun.com/j2se/1.5.0/docs/api/ - - true - true - public - - - - org.apache.maven.plugins - maven-pmd-plugin - - 1.5 - - /rulesets/basic.xml - /rulesets/imports.xml - /rulesets/unusedcode.xml - /rulesets/finalizers.xml - - - - - org.apache.maven.plugins - maven-checkstyle-plugin - - - config/maven_checks.xml - - - - org.codehaus.mojo - taglist-maven-plugin - - - TODO - @todo - FIXME - XXX - - - - - org.codehaus.mojo - cobertura-maven-plugin + 2.7 - clean + attach-javadocs - clean + jar - - - org.apache.maven.plugins - maven-release-plugin - -DenableCiProfile=true + + http://download.oracle.com/javase/1.5.0/docs/api/ + + true + public diff --git a/proto/src/main/java/com/google/gson/protobuf/ProtoTypeAdapter.java b/proto/src/main/java/com/google/gson/protobuf/ProtoTypeAdapter.java index 20eef36f..7a6be05f 100644 --- a/proto/src/main/java/com/google/gson/protobuf/ProtoTypeAdapter.java +++ b/proto/src/main/java/com/google/gson/protobuf/ProtoTypeAdapter.java @@ -1,4 +1,18 @@ -// Copyright 2010 Google Inc. All Rights Reserved. +/* + * Copyright (C) 2010 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.gson.protobuf;